commit | 61433f380699811fc3ef576ee7f7e56bfb2ba08c | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Tue Jul 25 17:09:14 2023 +0000 |
committer | Nico Huber <nico.h@gmx.de> | Tue Jul 25 17:33:20 2023 +0000 |
tree | aaea88617d9398ba4aaefea08b6d18a858a512aa | |
parent | 8eca6b26c8da6661a2d12258f70e4dbbaeb9f897 [diff] [blame] |
Split nginx' sa.conf
diff --git a/nginx/id.sa.conf b/nginx/id.sa.conf new file mode 100644 index 0000000..9dbac41 --- /dev/null +++ b/nginx/id.sa.conf
@@ -0,0 +1,16 @@ +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name id.miau.local; + + location /auth/ { # Gerrit adds this prefix for Keycloak... + rewrite ^/auth(.*)$ $1 last; + } + + location / { + proxy_pass http://keycloak:8080; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $host; + } +}