added insecure mode

This commit is contained in:
Djeeberjr 2021-11-15 00:02:04 +01:00
parent 19e1f366c8
commit 4a3e7ad0c7
2 changed files with 10 additions and 2 deletions

View File

@ -7,9 +7,10 @@ services:
- CVAR_HOSTNAME=My left 4 dead server - CVAR_HOSTNAME=My left 4 dead server
- CVAR_RCON_PASSWORD=password123 - CVAR_RCON_PASSWORD=password123
- CVAR_SV_ALLOW_LOBBY_CONNECT_ONLY=0 - CVAR_SV_ALLOW_LOBBY_CONNECT_ONLY=0
- CVAR_SV_CONSISTENCY=1 - CVAR_SV_CONSISTENCY=0
- CAVR_SV_VOICEENABLE=1 - CAVR_SV_VOICEENABLE=1
- CVAR_MP_DISABLE_AUTOKICK=1 - CVAR_MP_DISABLE_AUTOKICK=1
- INSECURE=true
- "MOTD_FILE_CONTENT=Put your MODT here. \n - "MOTD_FILE_CONTENT=Put your MODT here. \n
Multiline is also supported." Multiline is also supported."
- "HOST_FILE_CONTENT=Same with the host file \n - "HOST_FILE_CONTENT=Same with the host file \n

View File

@ -25,4 +25,11 @@ env | awk -F "=" '/^CVAR_/ {sub("CVAR_","",$1); print tolower($1),($2 ~ /^[0-9]+
cat /home/steam/server/left4dead2/cfg/server.cfg cat /home/steam/server/left4dead2/cfg/server.cfg
"$HOME/server/srcds_run" -console -game left4dead2 +maxplayers 16 -maxclients 16 -ip 0.0.0.0 SRCDS_ARGS=""
if [ -n "$INSECURE" ]; then
SRCDS_ARGS="${SRCDS_ARGS} -insecure"
echo "Running with VAC disabled."
fi
"$HOME/server/srcds_run" -console -game left4dead2 +maxplayers 16 -maxclients 16 -ip 0.0.0.0 $SRCDS_ARGS