Merge pull request #22 from galinette-34/patch-1

Introduce variable CS2_IP
This commit is contained in:
John Edwards 2023-10-12 20:16:25 +01:00 committed by GitHub
commit c89909568c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -45,6 +45,7 @@ STEAMGUARD="" (Optional, Steam Guard key if enabled. Use your most
```dockerfile
CS2_SERVERNAME="changeme" (Set the visible name for your private server)
CS2_IP=0.0.0.0 (CS2 server listening IP address, 0.0.0.0 - all IP addresses on the local machine, empty - IP identified automatically)
CS2_PORT=27015 (CS2 server listen port tcp_udp)
CS2_LAN="0" (0 - LAN mode disabled, 1 - LAN Mode enabled)
CS2_RCONPW="changeme" (RCON password)

View file

@ -33,6 +33,7 @@ RUN set -x \
FROM build_stage AS bullseye-base
ENV CS2_SERVERNAME="cs2 private server" \
CS2_IP=0.0.0.0 \
CS2_PORT=27015 \
CS2_MAXPLAYERS=10 \
CS2_RCONPW="changeme" \

View file

@ -47,7 +47,7 @@ fi
# Start Server
eval "./cs2" -dedicated \
-port "${CS2_PORT}" \
-ip "${CS2_IP}" -port "${CS2_PORT}" \
-console \
-usercon \
-maxplayers_override "${CS2_MAXPLAYERS}" \