S-48324 Change /app.js to /app to avoid random Azure glitch
S-48324 Make settings use protocol and host/port instead of hardcoding it