-
Notifications
You must be signed in to change notification settings - Fork 8
Reverse proxy support for custom server base path #113
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
base: main
Are you sure you want to change the base?
Conversation
|
for this one:
I think there are a few things to look at:
|
|
Yes I only remember that after "cold booting" the server, subsequent (and repeated) requests were no longer hitting the server as often, likely due to browser caching? |
|
So it seems there is a bit of work needed on the core code to fully support For the time being I opened an extra port for this app on my server - long term however I'd like it more secure behind a reverse proxy (+certificates), the base path will become very handy especially with Docker in the mix. |
yes, that's correct, though I have this possibly silly idea that we could just run some string replacements with sed in your docker setup. I would just need a common pattern for the paths in the JS files |
|
Cool, quick wins are good. |
|
Hey hey. I'm realising there's one more reason to support reverse proxy: HanziGraph doesn't allow saving the dictionary offline and enabling the tool offline, unless the connection is over https (unless I'm wrong?). The reverse proxy would enable the certificates for https. |
|
nah, you're right: service workers are https-only, and I lean on those for offline support. Did you want to try writing in some |
|
If you can please give it a shot, as I wouldn't know what I am doing :) |
My self hosted apps are typically under a https://mydomain.com/app path.
The web app should have a way of handling requests under a base path which is not necessarily root.
This is my first attempt.
I believe some more code tweaking is needed since not all requests seem to go through the python server's handler.
Inputs and suggestions are highly appreciated as I'd like to be able to host a variant of this app with configurability on reverse proxies.
Thanks!