Closed amotl closed 1 year ago
Apparently, we can also use DASH_URL_BASE_PATHNAME
.
url_base_pathname
A local URL prefix to use app-wide. Default '/'. Both
requests_pathname_prefix
androutes_pathname_prefix
default tourl_base_pathname
. env:DASH_URL_BASE_PATHNAME
It works like this:
export DASH_URL_BASE_PATHNAME=/explorer/
wetterdienst explorer --listen=localhost:8891
Nginx configuration, gist:
server {
server_name wetterdienst.example.org;
location ~ ^/explorer {
proxy_set_header Host $host;
proxy_pass http://localhost:8891;
}
}
I will leave this ticket open as a reminder to add a sentence about DASH_URL_BASE_PATHNAME
to the documentation.
Hi again,
this will be fixed with 889f67c357, so I am closing the issue.
With kind regards, Andreas.
Hi there,
while installing the Wetterdienst Explorer on the server, we found that it currently can not be served with an URL prefix.
We will probably have to add/adjust
url_base_pathname
at https://github.com/earthobservations/wetterdienst/blob/e77d121489db441897c39ec958273627fd1708d4/wetterdienst/ui/explorer/app.py#L30-L35With kind regards, Andreas.