-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Running behind reverse proxy gives wrong redirect URL #204
Comments
that redirect URL is computed from the request the server is getting. its just a hint really. |
Mmm. Not quite. Something weird is going on. I have the same issue, same setup as OP. If I change the redirect URI to While if I keep the Any ideas? |
Yes this is exactly what I'm running into aswell. |
agree. I tried to point this out several months ago and my issue was closed. |
like I said its computed. Its what the request comes through as, so if you setup your reverse proxy to go to the HTTP protocol, then it will see the request coming from HTTP and give that. Theres 2 ports you can configure 3000 == http |
that does not work either. I mapped port 3001 to 4000, went to https://docker-ip:3001, and the page cannot be loaded. if I go to http://docker-ip:3000 it loads up with the initial config. |
I just created a PR for @revenz to review in which I have solved this issue: For those who would like to test it already before revenz checks the PR, feel free to pull this image: Please let me know if someone tests if if they run into any issues, I'm personally able to use Fenrus now with Keycloak as oauth authentication, behind a HAproxy doing SSL offloading, and a nginx reverse proxy, being my kubernetes ingress controller. |
Another optoin is to set the enviromental variables
I'm using it behind a reverse proxy, going through cloudflare, to nginx proxy manager, to fenrus, using googles oauth. without any additional changes. so there must be a simplier way, something that im just missing in the docs. |
Hello @revenz, But aren't you hosting your app in https mode then? because I see you also install the dotnet dev cert in the final container. I would like to run the app in http mode, since complete Ssl termination is done in my loadbalancer, all traffic afterwards, continues on port 80, so the app doesn't have to run in https mode, it just needs to use the correct X-Forward-X headers to correctly generate urls like for Auth. |
Hello @revenz,
I'm trying to run Fenrus on my kubernetes cluster, with using OIDC authentication from Keycloak. But the redirect url that is being configured is http, instead of https which gives me certificate issues.
I'm running it behind a reverse proxy which does SSL termination for me.
Could you tell me if there is a way to configure this setup, or what I'm doing wrong?
With kind regards,
Maaroen
The text was updated successfully, but these errors were encountered: