From c92fe6e2215139ad9db117aba5642e3a53971b48 Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Sat, 14 Jun 2025 08:48:45 +0200 Subject: [PATCH] Update `nginx.conf` to include `KEYCLOAK_CLIENT_SECRET` and add `/redirect_uri` location configuration --- nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) 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;