File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ The following environment variables can be used to configure the Hytale server:
5656| ` HYTALE_SERVER_PORT ` | ` 5520 ` | Port the server binds to |
5757| ` HYTALE_PARAMETERS ` | _ (see below)_ | Override all JVM/server parameters |
5858| ` HYTALE_ADDITIONAL_PARAMETERS ` | _ (none)_ | Append additional parameters to the default |
59+ | ` HYTALE_SERVER_NAME ` | _ (none)_ | Override ` ServerName ` in ` config.json ` |
60+ | ` HYTALE_MOTD ` | _ (none)_ | Override ` MOTD ` in ` config.json ` |
61+ | ` HYTALE_PASSWORD ` | _ (none)_ | Override ` Password ` in ` config.json ` |
62+ | ` HYTALE_MAX_PLAYERS ` | _ (none)_ | Override ` MaxPlayers ` in ` config.json ` |
5963| ` HYTALE_MAX_VIEW_RADIUS ` | _ (none)_ | Override ` MaxViewRadius ` in ` config.json ` |
6064
6165### Example with Custom Memory Settings
Original file line number Diff line number Diff line change @@ -42,5 +42,21 @@ if [ -f /app/Hytale/config.json ] && [ -n "$HYTALE_MAX_VIEW_RADIUS" ]; then
4242 sed -i " s/\" MaxViewRadius\" [[:space:]]*:[[:space:]]*[0-9.]\+/\" MaxViewRadius\" : $HYTALE_MAX_VIEW_RADIUS /" /app/Hytale/config.json
4343fi
4444
45+ if [ -f /app/Hytale/config.json ] && [ -n " $HYTALE_SERVER_NAME " ]; then
46+ sed -i " s/\" ServerName\" [[:space:]]*:[[:space:]]*\" [^\" ]*\" /\" ServerName\" : \" $HYTALE_SERVER_NAME \" /" /app/Hytale/config.json
47+ fi
48+
49+ if [ -f /app/Hytale/config.json ] && [ -n " $HYTALE_MOTD " ]; then
50+ sed -i " s/\" MOTD\" [[:space:]]*:[[:space:]]*\" [^\" ]*\" /\" MOTD\" : \" $HYTALE_MOTD \" /" /app/Hytale/config.json
51+ fi
52+
53+ if [ -f /app/Hytale/config.json ] && [ -n " $HYTALE_PASSWORD " ]; then
54+ sed -i " s/\" Password\" [[:space:]]*:[[:space:]]*\" [^\" ]*\" /\" Password\" : \" $HYTALE_PASSWORD \" /" /app/Hytale/config.json
55+ fi
56+
57+ if [ -f /app/Hytale/config.json ] && [ -n " $HYTALE_MAX_PLAYERS " ]; then
58+ sed -i " s/\" MaxPlayers\" [[:space:]]*:[[:space:]]*[0-9]\+/\" MaxPlayers\" : $HYTALE_MAX_PLAYERS /" /app/Hytale/config.json
59+ fi
60+
4561# Start the Hytale server
4662exec java $HYTALE_PARAMETERS
You can’t perform that action at this time.
0 commit comments