docker-jitsi-meet
docker-jitsi-meet copied to clipboard
When hosting under a subpath, pwa-worker.js is attempted to be loaded from the base domain without a subpath
I'm overriding the /usr/share/jitsi-meet/base.html file of the web container with one that looks like this:
<base href="/jitsi/" />
I'm also passing PUBLIC_URL=https://SOME_DOMAIN/jitsi/ as an environment variable.
When I load the homepage (https://SOME_DOMAIN/jitsi/) all assets are loaded as expected and work fine, but it tries to load pwa-worker.js from the base domain - https://SOME_DOMAIN/pwa-worker.js (not https://SOME_DOMAIN/jitsi/pwa-worker.js).
The relevant code seems to be here: https://github.com/jitsi/jitsi-meet/blob/f1ad9dc2e077f96e06b3776369a6261eab1fa6e5/index.html#L43
Patches are welcome, we don't really support subpath deployments very well.
I've made a PR related to this one here: https://github.com/jitsi/docker-jitsi-meet/pull/1517 which has been merged and is available in the unstable build from today.
Sounds good! Thank you for improving things!
Seems like #1517 only fixes this when ENABLE_SUBDOMAINS is enabled though?
I'm not sure I understand how it works.