diff --git a/nginx.conf b/nginx.conf index 878fc7f..f4ad3b8 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,7 @@ worker_processes 1; +env KEYCLOAK_CLIENT_SECRET; + events { worker_connections 1024; } @@ -35,6 +37,10 @@ http { 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) location / { access_by_lua_file /usr/local/openresty/nginx/conf/auth.lua;