mirror of
https://git.techniverse.net/scriptos/tmserver-docker.git
synced 2026-07-09 13:37:03 +00:00
feat: SERVER_LADDER_LIMIT_MAX als ENV-Variable hinzugefügt (Closes #3)
This commit is contained in:
@@ -420,6 +420,7 @@ if [ "$APPLY_ENV" = "true" ]; then
|
||||
sed -i "s|%%SERVER_MAX_SPECTATORS%%|${SERVER_MAX_SPECTATORS}|g" "$CONFIG"
|
||||
sed -i "s|%%SERVER_SPEC_PASSWORD%%|${SERVER_SPEC_PASSWORD}|g" "$CONFIG"
|
||||
sed -i "s|%%SERVER_LADDER_MODE%%|${SERVER_LADDER_MODE}|g" "$CONFIG"
|
||||
sed -i "s|%%SERVER_LADDER_LIMIT_MAX%%|${SERVER_LADDER_LIMIT_MAX:-60000}|g" "$CONFIG"
|
||||
|
||||
# Netzwerk
|
||||
sed -i "s|%%SERVER_PORT%%|${SERVER_PORT}|g" "$CONFIG"
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
<ladder_mode>%%SERVER_LADDER_MODE%%</ladder_mode> <!-- value between 'inactive', 'forced' (or '0', '1') -->
|
||||
<ladder_serverlimit_min>0</ladder_serverlimit_min> <!-- Those values will be clamped to the limits authorized on http://official.trackmania.com/tmf-ladderserver/ -->
|
||||
<ladder_serverlimit_max>50000</ladder_serverlimit_max>
|
||||
<ladder_serverlimit_max>%%SERVER_LADDER_LIMIT_MAX%%</ladder_serverlimit_max>
|
||||
|
||||
<enable_p2p_upload>True</enable_p2p_upload>
|
||||
<enable_p2p_download>True</enable_p2p_download>
|
||||
|
||||
Reference in New Issue
Block a user