updated server settings

This commit is contained in:
2025-06-22 13:39:27 +00:00
parent b54bc37e00
commit 94cc010464
5 changed files with 30 additions and 3 deletions

11
.env Normal file
View File

@ -0,0 +1,11 @@
# Server vars
HOSTNAME=GO YASOZDAL | CSDM
PORT=27015
HLTV_PORT=27020
VAC="secure"
SV_LAN=0
# Gameplay settings
START_MAP="de_dust2"
MAX_PLAYERS=32
RCON_PASSWORD=9OrEQYdj/ulkf0uC4JKr220+

View File

@ -5,10 +5,13 @@ services:
ports:
- "${PORT}:${PORT}/udp"
- "${HLTV_PORT}:${HLTV_PORT}/udp"
volumes:
- ./server.cfg:/hlds/cstrike/server.cfg
restart: unless-stopped
environment:
HOSTNAME: "${HOSTNAME}"
MAP: "${START_MAP}"
MAXPLAYERS: "${MAX_PLAYERS}"
MAX_PLAYERS: "${MAX_PLAYERS}"
PORT: "${PORT}"
HLTV_PORT: "${HLTV_PORT}"
RCON_PASSWORD: "${RCON_PASSWORD}"

0
init.sh Normal file → Executable file
View File

View File

@ -0,0 +1,15 @@
hostname "GO YASOZDAL | CSDM"
sv_lan "0"
rcon_password "9OrEQYdj/ulkf0uC4JKr220+"
mp_autoteambalance 0
mp_limitteams 2
mp_freezetime 3
mp_roundtime 2
mp_timelimit 30
mp_startmoney 2025
sv_aim 0
pausable 0
sv_maxspeed 320
mp_timelimit 20
sv_cheats 0
maxplayers ""

View File

@ -8,6 +8,4 @@ cd /hlds
-port "$PORT" \
+map "$MAP" \
+maxplayers "$MAX_PLAYERS" \
+sv_lan "$SV_LAN" \
+rcon_password "$RCON_PASSWORD" \
-${VAC:+-VAC}