You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix SERVER_LIST_URL requiring a local /servers.json #848
fails with:
cp: cannot stat '/servers.json': No such file or directory
The container therefore cannot be used with SERVER_LIST_URL alone.
Why it should be implemented
This would allow users to use the documented SERVER_LIST_URL functionality without having to create and mount an otherwise unnecessary local /servers.json file.
If SERVER_LIST_URL is configured, /servers.json should not be required.
At the same time, existing configurations using a local /servers.json should continue to work unchanged.
Optional: implementation suggestions
The entrypoint could check whether /servers.json exists before attempting to copy it.
For example:
if [[ "$MODE" == "frontend" || "$MODE" == "dual" ]]; then
if [ -f /servers.json ]; then
cp /servers.json /var/www/html/servers.json
elif [ -z "$SERVER_LIST_URL" ]; then
echo "ERROR: /servers.json not found and SERVER_LIST_URL is not set"
exit 1
fi
fi
This would result in the following behavior:
/servers.json exists → use the local server list
SERVER_LIST_URL is set → use the remote server list
neither is configured → fail with a clear error message
English is not my first language so hopefully I could transport everything correctly.
Activity