Closed ghost closed 6 years ago
oauth2_proxy is stateless - if you configure two instances of oauth2_proxy with the same cookie-name, cookie-secret, oauth client secret, etc, then you can put them on two separate servers behind a load balancer and it will be transparent.
If your applications just have different paths but the same domain then it's pretty easy to put multiple of them behind an oauth2_proxy. Things get complicated and tricky when you try to do this for apps on different domains. One reason is because of the oauth callback restrictions enforced by the oauth provider. There is a lot you can do with complicated and clever nginx config. But often having separate instances of oauth2_proxy per app domain is the simplest and most robust way.
Thank you very much for ur answer
hi,
i have maybe 2 question.
Should i have one oauth2 proxy process per application? or could i have just one and redirect to more than one app.
any way to have oauth2 proxy LB setup?
Thanks in advance