Skip to content

Commit

Permalink
GSLT_FILE, STEAM_LOGIN_FILE, STEAM_PASSWORD_FILE and API_AUTHORIZATIO…
Browse files Browse the repository at this point in the history
…N_KEY_FILE can be used to fill in the value from a file, especially for Docker's secrets feature
  • Loading branch information
crazy-max committed Jun 5, 2020
1 parent 862d13b commit d86b3c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ If you are interested, [check out](https://hub.docker.com/r/crazymax/) my other
* `SMTP_DOMAIN`: Argument of the `SMTP EHLO` command. Default is `localhost`.
* `SMTP_FROM`: Set the envelope-from address. Supported substitution patterns can be found [here](https://marlam.de/msmtp/msmtp.html#Commands-specific-to-sendmail-mode).

And also the following environment variables to edit the CSGO Server Launcher [configuration](https://github.com/crazy-max/csgo-server-launcher/wiki/Configuration) :
> 💡 `SMTP_USER_FILE` and `SMTP_PASSWORD_FILE` can be used to fill in the value from a file, especially for Docker's secrets feature.
And also the following environment variables to edit the CSGO Server Launcher [configuration](https://github.com/crazy-max/csgo-server-launcher/wiki/Configuration):

* `IP` (default `$(sudo dig -4 +short myip.opendns.com @resolver1.opendns.com)`)
* `PORT` (default `27015`)
Expand All @@ -38,6 +40,8 @@ And also the following environment variables to edit the CSGO Server Launcher [c
* `TICKRATE` (default `64`)
* `EXTRAPARAMS` (default `-nohltv +sv_pure 0 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2`)

> 💡 `GSLT_FILE`, `STEAM_LOGIN_FILE`, `STEAM_PASSWORD_FILE` and `API_AUTHORIZATION_KEY_FILE` can be used to fill in the value from a file, especially for Docker's secrets feature.
## Volumes

* `/var/steamcmd/games/csgo`: CSGO root folder
Expand Down
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ unset SMTP_USER
unset SMTP_PASSWORD

# Config
file_env 'GSLT'
file_env 'STEAM_LOGIN'
file_env 'STEAM_PASSWORD'
file_env 'API_AUTHORIZATION_KEY'
cat > "/etc/csgo-server-launcher/csgo-server-launcher.conf" <<EOL
# This file is an integral part of csgo-server-launcher.
# More info : https://github.com/crazy-max/csgo-server-launcher#installation
Expand Down Expand Up @@ -159,6 +163,8 @@ PARAM_START="${PARAM_START}"
PARAM_UPDATE="${PARAM_UPDATE}"
EOL
unset GSLT
unset STEAM_LOGIN
unset STEAM_PASSWORD
unset API_AUTHORIZATION_KEY

# Perms
Expand Down

0 comments on commit d86b3c8

Please sign in to comment.