Merge pull request #42 from joedwards32/steamtv_support

Added support for TV client password
This commit is contained in:
John Edwards 2023-10-27 09:30:34 +01:00 committed by GitHub
commit 9d609c798c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 0 deletions

View file

@ -98,6 +98,7 @@ CS2_BOT_QUOTA_MODE="" (fill, competitive)
TV_ENABLE=1 (0 - disable, 1 - enable) TV_ENABLE=1 (0 - disable, 1 - enable)
TV_PORT=27020 (SourceTV/CSTV port to bind to) TV_PORT=27020 (SourceTV/CSTV port to bind to)
TV_AUTORECORD=0 (Automatically record all games as CSTV demos: 0=off, 1=on) TV_AUTORECORD=0 (Automatically record all games as CSTV demos: 0=off, 1=on)
TV_PW="changeme" (CSTV password for clients)
TV_RELAY_PW="changeme" (CSTV password for relay proxies) TV_RELAY_PW="changeme" (CSTV password for relay proxies)
``` ```

View file

@ -55,6 +55,7 @@ ENV CS2_SERVERNAME="cs2 private server" \
TV_AUTORECORD=0 \ TV_AUTORECORD=0 \
TV_ENABLE=1 \ TV_ENABLE=1 \
TV_PORT=27020 \ TV_PORT=27020 \
TV_PW="changeme" \
TV_RELAY_PW="changeme" \ TV_RELAY_PW="changeme" \
CS2_ADDITIONAL_ARGS="" 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_ENABLE}}/${TV_ENABLE}/g" \
-e "s/{{TV_PORT}}/${TV_PORT}/g" \ -e "s/{{TV_PORT}}/${TV_PORT}/g" \
-e "s/{{TV_AUTORECORD}}/${TV_AUTORECORD}/g" \ -e "s/{{TV_AUTORECORD}}/${TV_AUTORECORD}/g" \
-e "s/{{TV_PW}}/${TV_PW}/g" \
-e "s/{{TV_RELAY_PW}}/${TV_RELAY_PW}/g" \ -e "s/{{TV_RELAY_PW}}/${TV_RELAY_PW}/g" \
"${STEAMAPPDIR}"/game/csgo/cfg/server.cfg "${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_name "{{SERVER_HOSTNAME}} CSTV" // CSTV host name
tv_overridemaster 0 // Overrides the CSTV master root address. tv_overridemaster 0 // Overrides the CSTV master root address.
tv_port {{TV_PORT}} // Host SourceTV port 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_relaypassword "{{TV_RELAY_PW}}" // CSTV password for relay proxies
tv_relayvoice 1 // Relay voice data: 0=off, 1=on tv_relayvoice 1 // Relay voice data: 0=off, 1=on
tv_snapshotrate 24 // Snapshots broadcasted per second tv_snapshotrate 24 // Snapshots broadcasted per second

View file

@ -32,6 +32,7 @@ services:
- TV_AUTORECORD=0 # Automatically records all games as CSTV demos: 0=off, 1=on. - TV_AUTORECORD=0 # Automatically records all games as CSTV demos: 0=off, 1=on.
- TV_ENABLE=1 # Activates CSTV on server: 0=off, 1=on. - TV_ENABLE=1 # Activates CSTV on server: 0=off, 1=on.
- TV_PORT=27020 # Host SourceTV port - TV_PORT=27020 # Host SourceTV port
- TV_PW=changeme # CSTV password for clients
- TV_RELAY_PW=changeme # CSTV password for relay proxies - TV_RELAY_PW=changeme # CSTV password for relay proxies
volumes: volumes:
- cs2:/home/steam/cs2-dedicated/ # (Change /mnt/cs2 according to your volume location) - cs2:/home/steam/cs2-dedicated/ # (Change /mnt/cs2 according to your volume location)