Added support for TV client password

This commit is contained in:
John Edwards 2023-10-27 09:26:43 +01:00
parent f08a442857
commit cc3d4ddce4
5 changed files with 5 additions and 0 deletions

View file

@ -55,6 +55,7 @@ ENV CS2_SERVERNAME="cs2 private server" \
TV_AUTORECORD=0 \
TV_ENABLE=1 \
TV_PORT=27020 \
TV_PW="changeme" \
TV_RELAY_PW="changeme" \
CS2_ADDITIONAL_ARGS=""

View file

@ -21,6 +21,7 @@ sed -i -e "s/{{SERVER_HOSTNAME}}/${CS2_SERVERNAME}/g" \
-e "s/{{TV_ENABLE}}/${TV_ENABLE}/g" \
-e "s/{{TV_PORT}}/${TV_PORT}/g" \
-e "s/{{TV_AUTORECORD}}/${TV_AUTORECORD}/g" \
-e "s/{{TV_PW}}/${TV_PW}/g" \
-e "s/{{TV_RELAY_PW}}/${TV_RELAY_PW}/g" \
"${STEAMAPPDIR}"/game/csgo/cfg/server.cfg

View file

@ -28,6 +28,7 @@ tv_maxrate 20000 // Max CSTV spectator bandwidth rate allowed
tv_name "{{SERVER_HOSTNAME}} CSTV" // CSTV host name
tv_overridemaster 0 // Overrides the CSTV master root address.
tv_port {{TV_PORT}} // Host SourceTV port
tv_password "{{TV_PW}}" // CSTV password for clients
tv_relaypassword "{{TV_RELAY_PW}}" // CSTV password for relay proxies
tv_relayvoice 1 // Relay voice data: 0=off, 1=on
tv_snapshotrate 24 // Snapshots broadcasted per second