docker-jitsi-meet icon indicating copy to clipboard operation
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

Open spantaleev opened this issue 2 years ago • 3 comments

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

spantaleev avatar Apr 02 '23 06:04 spantaleev

Patches are welcome, we don't really support subpath deployments very well.

saghul avatar Apr 03 '23 08:04 saghul

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.

aaronkvanmeerten avatar Apr 04 '23 13:04 aaronkvanmeerten

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.

spantaleev avatar Apr 04 '23 14:04 spantaleev