mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 14:05:27 +00:00
This change introduces support for using an http proxy for egress communication of the OpenID Connect realm.
19 lines
485 B
Nginx Configuration File
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;
|
|
}
|
|
}
|
|
}
|
|
|