Open DevSecNinja opened 8 years ago
Why not run two instances of oauth2_proxy
listening on different ports, with different settings?
@r3m0t because then you will usually have to register n-applications with the provider because of the hard-coded callback domains (think of github).
The way to do this is to have the requests hit oauth2_proxy first, then be proxied to nginx, then from there nginx can proxy to any other applications with any transformation you need. Or, you can use nginx auth_request
method.
Hello,
I have oauth2_proxy working with one upstream, which is great. I was wondering if it's possible to use multiple upstreams like http://server.com/app1 and http://server.com/app2 instead of using subdomains like http://app1.server.com and http://app2.server.com? All the issues and help files are using subdomains. I'm using Azure AD as a provider.
My Nginx config file would be something like this:
But as far as I know, I'm unable to redirect those locations to different hosts or ports in the oauth2_proxy config file, right?
Thank you.