ew/docker/start.sh
Ethan O'Brien a524629d88 Add server-admin features
- Added ability to "hide" server (by disabling the webui entirely, it will act exactly like the official server)
- Added ability to define the maximum timestamp that the server can return. This can be helpful if the server admin never wants to go past EOS
2024-10-17 23:38:50 -05:00

14 lines
510 B
Bash
Executable file

#!/bin/bash
port="${PORT:-8080}"
directory="${DIRECTORY:-/data/}"
npps4="${NPPS4_ADDRESS:-http://127.0.0.1:51376}"
https=$([ "$HTTPS" = "true" ] && echo "--https" || echo "")
hidden=$([ "$HIDDEN" = "true" ] && echo "--hidden" || echo "")
maxTime="${MAXTIME:-0}"
/root/ew/ew --path $directory --port $port --npps4 $npps4 $hidden $https --global-android "$ANDROID_GLOBAL" --japan-android "$ANDROID_JAPAN" --global-ios "$IOS_GLOBAL" --japan-ios "$IOS_JAPAN" --assets-url "$ASSET_URL" --max-time $maxTime