From 0f5925970f43589c892aa778eaaaf5944086001a Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Mon, 9 Jun 2025 11:31:51 +0200 Subject: [PATCH] Update `auth.lua` to use HTTP scheme and configure DNS resolver in `nginx.conf` --- auth.lua | 2 +- nginx.conf | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/auth.lua b/auth.lua index 6b7771d..90c8b44 100644 --- a/auth.lua +++ b/auth.lua @@ -5,7 +5,7 @@ local opts = { discovery = "https://kc.boomlab.party/realms/rhein-sw/.well-known/openid-configuration", client_id = "demo-sso", client_secret = os.getenv("KEYCLOAK_CLIENT_SECRET"), - redirect_uri_scheme = "https", + redirect_uri_scheme = "http", scope = "openid email profile" } diff --git a/nginx.conf b/nginx.conf index 53ee314..878fc7f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,8 @@ events { } http { + resolver 192.168.21.2 ipv6=off; + lua_package_path "/usr/local/openresty/lualib/?.lua;;"; lua_shared_dict discovery 1m;