commit | f4fbab5570580690800658a758bed27702f9f40a | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Tue Jul 25 10:57:08 2023 +0000 |
committer | Nico Huber <nico.h@gmx.de> | Tue Jul 25 11:10:52 2023 +0000 |
tree | 92609482e994b4f404d05f4db0fb93a08ce621b6 | |
parent | a73f8f329b636fb36d23fd41aedeed475a922819 [diff] [blame] |
Add basic Keycloak setup
diff --git a/nginx/sa.conf b/nginx/sa.conf index 0a20f36..4022254 100644 --- a/nginx/sa.conf +++ b/nginx/sa.conf
@@ -30,6 +30,16 @@ fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name; } + + 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; + } } server {