Alex Walker
Alex Walker
Great, I'll let you know when I will look into this. This could make it very exciting for me, and hopefully others!
Hi @jwilder took me a while to look at this again, so that looks like it would do the trick, however, in the nginx.tmpl file that comes with the nginx...
OK and just so I am clear, if I had 10 domains I wanted to protect I would need 10 instances of oauth2_proxy? Is there a "complicated" way? I was...
@ploxiln does oauth2_proxy pass the domain to nginx in your example there? For instance if nginx is listening on port 5180 for third_subdomain.website.com will that be passed on by oauth2_proxy?...
Hi @ploxiln Ive made reasonable progress with this, and it might help others, the references to issues #12 and #143 were very helpful. I have ended up with the following...
Oh right... I must have misunderstood you, I had thought you were referring to the upstream in oauth2_proxy passing back to the correct upstream in nginx. Thats the last bit...
@ploxiln I understand much better now. How come this isn't the official way of doing this? It seems much simpler than the URL rewriting method... The only thing Im not...
OK excellent, so according to the documentation, if I don't specify `redirect_url` I should get the Host passed through. I can see in the cfg file that this should be...
Sweet I think that worked. Im getting a 500 but the correct domain in the error, but I have the upstream set to `http://127.0.0.1:5180` so I think it must be...
sweet i cracked it. I'll write up a summary of the above and post here. Its might be quite useful for others who want to protect multiple applications