Ioannis Kakavas af9f9d7f03
[7.x] Add http proxy support for OIDC realm (#57039) (#57584)
This change introduces support for using an http proxy for egress
communication of the OpenID Connect realm.
2020-06-04 20:51:00 +03:00

19 lines
485 B
Nginx Configuration File

worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
# Acts as a simple forward http proxy for the OIDC realm configuration
listen 8888;
location / {
# oidc-provider is another container so we need to rewrite `127.0.0.1:ephemeralPort` with `oidc-provider:8080`
# so that nginx can access that
resolver 127.0.0.11;
set $ophost "oidc-provider:8080";
proxy_pass http://$ophost;
}
}
}