Hi, I was very happy to come across this...
I am trying to configure SSO for multiple subdomains as you do. I am however using an nginx config generator, so all my server blocks are in the same file. I have included the file below, sorry its so long. I have two sub domains I want to protect: internal.example.com and dashboard.example.com. I am using docker to host the oauth2_proxy hence why my IP for the proxy_pass is not localhost.
It works fine for the one domain, but the other domain points to the same place as the first. I.e its not forwarding the connection to the correct end point
So it looks like at some point I am not redirecting the URL correctly?
Any help would be greatly appreciated:
dashboard.example.com goes to internal.example.com. I.e they both go to 172.17.0.5:5000 even though all the headers say the correct thing (dashboard or internal)
Hi, I was very happy to come across this... I am trying to configure SSO for multiple subdomains as you do. I am however using an nginx config generator, so all my server blocks are in the same file. I have included the file below, sorry its so long. I have two sub domains I want to protect: internal.example.com and dashboard.example.com. I am using docker to host the oauth2_proxy hence why my IP for the proxy_pass is not localhost.
It works fine for the one domain, but the other domain points to the same place as the first. I.e its not forwarding the connection to the correct end point
So it looks like at some point I am not redirecting the URL correctly? Any help would be greatly appreciated:
EDIT: More explanation:
dashboard.example.com goes to internal.example.com. I.e they both go to 172.17.0.5:5000 even though all the headers say the correct thing (dashboard or internal)