Read the default gateway from the deployment, not the build #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/same-origin-gateway"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The app looked for its gateway only on the page's own host at port 8771, which does not fit a single-origin reverse proxy (app at
/, gateway at/gateway). Fixing it at build time would mean rebuilding the app to point it elsewhere, so the default now comes from the deployment./config.jsonat startup ({"gateway": "/gateway"}) and renders once it has an answer. Missing, unreadable, slow (3 s) or unparseable values fall back to<host>:8771;?ws=still wins. A path resolves against the page and takes the page's ws/wss scheme.nixosModules.default/darwinModules.default:services.felis-web.settingsbecomesconfig.json, andservices.felis-web.rootis the app plus that file, for a web server's document root.Verification
nix buildofservices.felis-web.root(includestsc).ws://<host>/gateway; absent →ws://<host>:8771;?ws=ws://elsewhere:1→ that; a malformed"http://["→ws://<host>:8771with the connect screen shown.