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; } } }