Repository navigation
Sync-in server with subpath #247
|
I'm using sync-in (npm install) behind a reverse proxy. I've tried with nginx (location and proxy_path) and zoraxy. |
Replies: 1 comment 1 reply
|
This isn't something the proxy can fix. The frontend is a bundled SPA, and the base path gets baked into the JS at build time. So the HTML loads (that's your "sync-in" text), then it asks for You're right that this needs a base URL option on the server side. Without one, the two working setups are: Dedicated subdomain, which you already found works — that's the supported path today. Or a dedicated port/root on an internal host, proxied at the root of a subdomain. Same thing really. Worth opening a feature request for a If you want to confirm the diagnosis before giving up on it: load |
This isn't something the proxy can fix. The frontend is a bundled SPA, and the base path gets baked into the JS at build time. So the HTML loads (that's your "sync-in" text), then it asks for
/assets/chunk-xxx.js— absolute, from the root — and your proxy has nothing there. Rewriting response bodies with nginxsub_filtercan paper over the HTML, but the chunk URLs the router builds at runtime will keep breaking, and so will the API calls.You're right that this needs a base URL option on the server side. Without one, the two working setups are:
Dedicated subdomain, which you already found works — that's the supported path today.
Or a dedicated port/root on an internal host, proxied at the…