Update nginx.conf to include KEYCLOAK_CLIENT_SECRET and add /redirect_uri location configuration

This commit is contained in:
2025-06-14 08:48:45 +02:00
parent 564f132d80
commit c92fe6e221

View File

@@ -1,5 +1,7 @@
worker_processes 1; worker_processes 1;
env KEYCLOAK_CLIENT_SECRET;
events { events {
worker_connections 1024; worker_connections 1024;
} }
@@ -35,6 +37,10 @@ http {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location = /redirect_uri {
access_by_lua_file /usr/local/openresty/nginx/conf/auth.lua;
}
# Protected root route (main site) # Protected root route (main site)
location / { location / {
access_by_lua_file /usr/local/openresty/nginx/conf/auth.lua; access_by_lua_file /usr/local/openresty/nginx/conf/auth.lua;