Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure GHC path behind proxy? #477

Open
RaineEkman opened this issue Sep 26, 2024 · 0 comments
Open

How to configure GHC path behind proxy? #477

RaineEkman opened this issue Sep 26, 2024 · 0 comments
Labels

Comments

@RaineEkman
Copy link

I'm setting up GeoHealthCheck using Docker images, and it's working fine on port 8083. But, when I reverse proxy the GHC system into a outward facing URL containing a path (i.e. https://irrelevant.server.name/geohealthcheck/... ), I can't get it to work.

Is this supposed to be possible and if so, how is it achieved?

All URLs in the HTML are absolute (e.g. /static/... ) and I need to either make them relative to the current directory ( static/.... ) or absolute with the correct path added ( /geohealthcheck/static/... ) but I can't figure out how.

I tried setting GHC_SITE_URL in the Docker environment, which I think only affects the email alerts, and some googling gave me a hint about APPLICATION_ROOT, which might be some Flask mechanism for fixing this. But neither would work, and I ended up with a somewhat working solution based on nginx:s sub_filter, which is text substitution on the outgoing HTML and clearly not right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant