This repository was archived by the owner on Aug 10, 2023. It is now read-only.
This repository was archived by the owner on Aug 10, 2023. It is now read-only.
Serving at a subpath is difficult due to a hardcoded base url #510
Open
Description
Due to
matrix-dimension/web/index.html
Line 86 in b98b284
.. serving at a different subpath (e.g. DOMAIN/dimension/
) means that the index page loads, but all resources are attempted to be loaded from the wrong place (DOMAIN/asset
instead of DOMAIN/dimension/asset
). To fix it up, one would need to override the base url.
For nginx, one could possibly use a sub_filter, but other reverse-proxies (e.g. Traefik) do not currently have an integrated middleware for arbitrary text replacements.
I suppose the easiest solution would be to make the docker entrypoint read some environment variable (e.g. BASE_URL
) and then do a sed
-replace in web/index.html
before starting.
Metadata
Metadata
Assignees
Labels
No labels