[Feature Request] Allow host on a subpath #339
christaikobo
started this conversation in
Ideas
Replies: 1 comment
|
+1 this would be really useful |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Right now this project is intended to be hosted at
/of a domain or subdomain.A lot of people (myself included) likes to host services under subpaths like
/mailarchiver.This practice is very popular in self hosted community, it reduces the number of subdomains to manage, reduces certificates and DNS to manage, also has some added privacy benefit because any observer on the line cannot see the subpath in https traffic. (but they can see the subdomain, so if you got 20 subdomain for 20 services it is very obvious)
The problem is that when hosting under a subpath all the resources are not loaded correctly, like the webpage is still pulling static assets from
mydomain.com/static/*. The standard practice is usually to add a environmental variablebase_url/http_rootor something similar so that all assets and page routes are correctly prepended with the subpath.Thank you for this very useful project!
All reactions