Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ SRCDS_CFG="server.cfg"
SRCDS_MAPCYCLE="mapcycle_default.txt" (value can be overwritten by tf/cfg/server.cfg)
SRCDS_SECURED=1 (0 to start the server as insecured)
SRCDS_SDR_FAKEIP=0 (1 to allow for the Steam Datagram Relay, hiding the server's IP)
SRCDS_REPLAY=0 (1 to enable replay support)
```

## Config
Expand Down
3 changes: 2 additions & 1 deletion bookworm/x32/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ ENV SRCDS_FPSMAX=300 \
SRCDS_CFG="server.cfg" \
SRCDS_MAPCYCLE="mapcycle.txt" \
SRCDS_SECURED=1 \
SRCDS_SDR_FAKEIP=0
SRCDS_SDR_FAKEIP=0 \
SRCDS_REPLAY=0

# Switch to user
USER ${USER}
Expand Down
3 changes: 2 additions & 1 deletion bookworm/x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ ENV SRCDS_FPSMAX=300 \
SRCDS_CFG="server.cfg" \
SRCDS_MAPCYCLE="mapcycle.txt" \
SRCDS_SECURED=1 \
SRCDS_SDR_FAKEIP=0
SRCDS_SDR_FAKEIP=0 \
SRCDS_REPLAY=0

# Switch to user
USER ${USER}
Expand Down
9 changes: 8 additions & 1 deletion etc/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ if [ "$SRCDS_SDR_FAKEIP" -eq 1 ]; then
SERVER_FAKEIP_FLAG="-enablefakeip";
fi

REPLAY_FLAG="";

if [ "$SRCDS_REPLAY" -eq 1 ]; then
REPLAY_FLAG="-replay";
fi

bash "${STEAMAPPDIR}/srcds_run" -game "${STEAMAPP}" -console -autoupdate \
-steam_dir "${STEAMCMDDIR}" \
-steamcmd_script "${HOMEDIR}/${STEAMAPP}_update.txt" \
Expand All @@ -59,4 +65,5 @@ bash "${STEAMAPPDIR}/srcds_run" -game "${STEAMAPP}" -console -autoupdate \
+servercfgfile "${SRCDS_CFG}" \
+mapcyclefile "${SRCDS_MAPCYCLE}" \
${SERVER_SECURITY_FLAG} \
${SERVER_FAKEIP_FLAG}
${SERVER_FAKEIP_FLAG} \
${REPLAY_FLAG}
9 changes: 8 additions & 1 deletion etc/entry_x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ if [ "$SRCDS_SDR_FAKEIP" -eq 1 ]; then
SERVER_FAKEIP_FLAG="-enablefakeip";
fi

REPLAY_FLAG="";

if [ "$SRCDS_REPLAY" -eq 1 ]; then
REPLAY_FLAG="-replay";
fi

bash "${STEAMAPPDIR}/srcds_run_64" -game "${STEAMAPP}" -console -autoupdate \
-steam_dir "${STEAMCMDDIR}" \
-steamcmd_script "${HOMEDIR}/${STEAMAPP}_update.txt" \
Expand All @@ -59,4 +65,5 @@ bash "${STEAMAPPDIR}/srcds_run_64" -game "${STEAMAPP}" -console -autoupdate \
+servercfgfile "${SRCDS_CFG}" \
+mapcyclefile "${SRCDS_MAPCYCLE}" \
${SERVER_SECURITY_FLAG} \
${SERVER_FAKEIP_FLAG}
${SERVER_FAKEIP_FLAG} \
${REPLAY_FLAG}