-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
[FEAT] Frontend behind path based proxy #56
Comments
Ah, crap. I only use scrutiny with a dedicated subdomain, so I never tested this. Thanks |
It would be great to ave an example config alongside these somewhere. A Baseurl would be great for this, I too intend to run this that way and don't want to do a whole rewrite rule ratking. |
Hey @aspacca @flying-sausages Basically your browser would see Something like https://www.nginx.com/blog/creating-nginx-rewrite-rules/ or is there something else that you'd like me to change on my side? |
@AnalogJ the also Either introducing a base path/proxy path setup variable, to prepend to the urls, or using relative url built from current location (harder and more tricky in my opinion) could be the solution |
Hm. sounds like the change needs to be done in the backend server listener I'm not quite sure where to start on this one, so give me some time to research. |
I'd say that adding a conf with the proxy path/base path where to serve from would be the easiet way I think this gin-gonic/gin#1867 would work, defining If you tell me which solution you prefer I can open a PR |
https://github.com/gin-gonic/gin#redirects something like:
still to think/test about https://github.com/AnalogJ/scrutiny/blob/master/webapp/backend/pkg/web/server.go#L48 |
and then frontend should make requests to relative path |
Heya...saw there was quite a bit of momentum in the pull request comments. But all has gone quiet. Just wondering the status on the merge...I'd love to have this feature. Thanks! |
fixes #208 fixes #56 fixes #93 apply changes from https://github.com/AnalogJ/scrutiny/pull/93/files
reverse proxy + custom path support has now been added. Released in v0.4.1 See docs/TROUBLESHOOTING_REVERSE_PROXY.md for more info. Thanks for your patience! |
Is your feature request related to a problem? Please describe.
I run scrutiny behind path based nginx proxy
Once I load https://mydomain.com/scrutiny the page send a 302 with
Location: /web
, and then after the redirection the location directive in nginx doesn't match anymoreDescribe the solution you'd like
Consider using a base path config for frontend (if possible at all) or build the frontend urls from current url
Additional context
Scrutiny doesn't provide any https listener, so I need to proxy it by nginx
The text was updated successfully, but these errors were encountered: