Skip to content

Commit f43f7df

Browse files
authored
Merge pull request #157 from Peeetman/main
Add warning regarding "/" in CS2_SERVERNAME
2 parents 38b2938 + 2e6a018 commit f43f7df

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ Minimum system requirements are:
4646
* 40GB of disk space for the container or mounted as a persistent volume on `/home/steam/cs2-dedicated/`
4747

4848
## Environment Variables
49-
Feel free to overwrite these environment variables, using -e (--env):
49+
Feel free to overwrite these environment variables, using -e (--env):
50+
51+
**Note:** `/` characters in Counter-Strike-related environment variables **must be escaped** as `\/` (e. g. `CS2_SERVERNAME="My Server 1\/3` will result in `My Server 1/3` in-game). Otherwise, this may cause unexpected behavior during configuration processing
5052

5153
### Server Configuration
5254

5355
```dockerfile
5456
SRCDS_TOKEN="" (Game Server Token from https://steamcommunity.com/dev/managegameservers)
55-
CS2_SERVERNAME="changeme" (Set the visible name for your private server)
57+
CS2_SERVERNAME="changeme" (Set the visible name for your private server.)
5658
CS2_CHEATS=0 (0 - disable cheats, 1 - enable cheats)
5759
CS2_SERVER_HIBERNATE=0 (Put server in a low CPU state when there are no players.
5860
0 - hibernation disabled, 1 - hibernation enabled

examples/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
- SRCDS_TOKEN # Game Server Token from https://steamcommunity.com/dev/managegameservers
88
- DEBUG=0 # (0 - off, 1 - steamcmd, 2 - cs2, 3 - all)
99
- STEAMAPPVALIDATE=0 # (0 - no validation, 1 - enable validation)
10-
- CS2_SERVERNAME=changeme # (Set the visible name for your private server)
10+
- CS2_SERVERNAME=changeme # (Set the visible name for your private server.)
1111
- CS2_CHEATS=0 # (0 - disable cheats, 1 - enable cheats)
1212
- CS2_PORT=27015 # (CS2 server listen port tcp_udp)
1313
- CS2_SERVER_HIBERNATE=0 # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)

0 commit comments

Comments
 (0)