-
I am trying to run healthchecks.io on a sub url (https://www.mydomain.com/healthchecks for example) but failing to get this to work. I am running this behind Treafik reverse proxy, and I can get it to strip the subURL from the request before forwarding to healthchecks.io. The screen does not render properly and looking at the HTML, I can see lots of relative path references to '/static/xxxxx'. I cannot find anything under the configuration settings that seems to help this situation and none of the historical issues seem to have a solution. Have I missed something obvious? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Serving under a subpath is not well tested – it may be possible to get to work, but you may run into issues (PRs welcome). There is also no specific documentation to get it to work. I just tested the following setup: On my local system, I started a development web server with the following additional settings in FORCE_SCRIPT_NAME = "/foo"
STATIC_URL = "/foo/static/"
CSRF_TRUSTED_ORIGINS = ["http://localhost"] It serves on http://localhost:8000. On the same system I configured nginx like so:
After reloading nginx configuration, I can visit |
Beta Was this translation helpful? Give feedback.
Serving under a subpath is not well tested – it may be possible to get to work, but you may run into issues (PRs welcome). There is also no specific documentation to get it to work.
I just tested the following setup:
On my local system, I started a development web server with the following additional settings in
local_settings.py
:It serves on http://localhost:8000.
On the same system I configured nginx like so: