add demostf api key argument

This commit is contained in:
Robin Appelman 2016-01-05 19:42:49 +01:00
commit 0ec3bf9e6b
2 changed files with 3 additions and 1 deletions

View file

@ -16,4 +16,5 @@ docker pull spiretf/docker-spire-server
| WEBRCON\_PASSWORD | The webrcon password | $RCON\_PASSWORD |
| CONFIG | The server config to execute | etf2l_6v6_5cp |
| MAP | The map to start the server on | cp_badlands |
| LOGSTF_APIKEY | Api key for logs.tf | |
| LOGSTF_APIKEY | Api key for logs.tf | |
| DEMOSTF_APIKEY | Api key for demos.tf | |

1
tf.sh
View file

@ -8,6 +8,7 @@ echo "hostname \"${NAME:-"Spire Server"}\"" >> $CFG
echo "sv_password \"${PASSWORD:-password}\"" >> $CFG
echo "rcon_password \"${RCON_PASSWORD:-rcon}\"" >> $CFG
echo "sm_webrcon_key \"${WEBRCON_PASSWORD:-${RCON_PASSWORD:-rcon}}\"" >> $CFG
echo "sm_demostf_apikey \"${DEMOSTF_APIKEY}\"" >> $CFG
echo "logstf_apikey \"${LOGSTF_APIKEY}\"" >> $CFG
echo "exec ${CONFIG:-etf2l_6v6_5cp}" >> $CFG