Skip to content
New issue

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

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

Already on GitHub? # to your account

Configure reverse proxy to other URL #14

Open
jonathan-arenas opened this issue Oct 17, 2023 · 2 comments
Open

Configure reverse proxy to other URL #14

jonathan-arenas opened this issue Oct 17, 2023 · 2 comments

Comments

@jonathan-arenas
Copy link

jonathan-arenas commented Oct 17, 2023

Hi people!

Good job with the solution! It was exactly what I was looking for.

I have a doubt, is it possible to configure (I do not see on code) the solution for redirection to other site (once logged in)?
I want to configure reverse proxy to keep the main domain url.

Kind regards.

@jonathan-arenas
Copy link
Author

Anyone know how it configure? Thank you.

@fkpp
Copy link

fkpp commented Oct 23, 2023

Hi,

not sure if I understand your demand correct. But have you had a look in your ingress configuration?
You could simply change the value after 'callback'.
I am for instance returning the full URI to be redirected to after login:

nginx.ingress.kubernetes.io/server-snippet: | error_page 401 = @login; location @login { return 302 https://another-ldap.your.domain/?protocol=$pass_access_scheme&callback=$host$request_uri; }

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

No branches or pull requests

2 participants