Skip to content

Commit 81d732b

Browse files
authored
Merge pull request #101 from Micke90s/v1.1.2.3
Version 1.1.2.3 - New launch parameters
2 parents 62eb81d + 442b569 commit 81d732b

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ ENV PUID=1000 \
107107
SEASON="" \
108108
SERVER_IP="" \
109109
SERVER_PORT="" \
110+
PASSWORD="" \
111+
ALLOW_ONLY_PLATFORM="" \
110112
DISCORD_WEBHOOK_URL="" \
111113
# Player Join
112114
DISCORD_PLAYER_JOIN_ENABLED=true \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ These are the arguments you can use to customize server behavior with default va
100100
| MAX_PLAYERS | 10 | Maximum number of players that will be allowed to connect to server. |
101101
| SERVER_IP | No Default | Only used if port is set. Sets the address that the server will bind to. |
102102
| SERVER_PORT | No Default | Port used for direct connection mode. **Setting an value to this will cause the server behaviour to change!** [See Network Mode](#network-mode) |
103+
| PASSWORD | No Default | Password players should use when trying to join using direct connections. Maximum length password can be 28 characters. If omitted or invalid, a random password will be generated.|
104+
| ALLOW_ONLY_PLATFORM | No Default | Allow only players from given platform. If not set all platforms are allowed. Has no effect unless -port is also set enabling Direct Connections. Can be Steam (1), Epic (2), Microsoft (3), GOG (4). |
103105
| DISCORD_WEBHOOK_URL | "" | Webhook url (Edit channel > Integrations > Create Webhook). |
104106
| DISCORD_PLAYER_JOIN_ENABLED | true | Enable/Disable message on player join |
105107
| DISCORD_PLAYER_JOIN_MESSAGE | `"$${char_name} ($${steamid}) has joined the server."` | Embed message |

docker-compose-example/.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ GAME_ID=""
1010
MAX_PLAYERS=10
1111
SEASON=""
1212
SERVER_IP=""
13-
# Port is only needed if using direct connect mode
13+
# Port and Password are only needed if using direct connect mode
1414
#SERVER_PORT="27015"
15+
#PASSWORD=""
1516
DISCORD_WEBHOOK_URL=""
1617
# Player Join
1718
DISCORD_PLAYER_JOIN_ENABLED=true

scripts/compile-parameters.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ add_param "-season" "${SEASON}"
3333
add_param "-ip" "${SERVER_IP}"
3434
add_param "-port" "${SERVER_PORT}"
3535
add_param "-activatecontent" "${ACTIVATE_CONTENT}"
36+
add_param "-password" "${PASSWORD}"
37+
add_param "-allowonlyplatform" "${ALLOW_ONLY_PLATFORM}"
3638

3739
echo "${params[@]}"

0 commit comments

Comments
 (0)