Skip to content

Commit

Permalink
Merge pull request #42 from joedwards32/steamtv_support
Browse files Browse the repository at this point in the history
Added support for TV client password
  • Loading branch information
joedwards32 authored Oct 27, 2023
2 parents f08a442 + cc3d4dd commit 9d609c7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ CS2_BOT_QUOTA_MODE="" (fill, competitive)
TV_ENABLE=1 (0 - disable, 1 - enable)
TV_PORT=27020 (SourceTV/CSTV port to bind to)
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)
```

Expand Down
1 change: 1 addition & 0 deletions bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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=""

Expand Down
1 change: 1 addition & 0 deletions bullseye/etc/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions bullseye/etc/server.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
- 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_PORT=27020 # Host SourceTV port
- TV_PW=changeme # CSTV password for clients
- TV_RELAY_PW=changeme # CSTV password for relay proxies
volumes:
- cs2:/home/steam/cs2-dedicated/ # (Change /mnt/cs2 according to your volume location)
Expand Down

0 comments on commit 9d609c7

Please sign in to comment.