Update auth.lua to use HTTP scheme and configure DNS resolver in nginx.conf
This commit is contained in:
2
auth.lua
2
auth.lua
@@ -5,7 +5,7 @@ local opts = {
|
|||||||
discovery = "https://kc.boomlab.party/realms/rhein-sw/.well-known/openid-configuration",
|
discovery = "https://kc.boomlab.party/realms/rhein-sw/.well-known/openid-configuration",
|
||||||
client_id = "demo-sso",
|
client_id = "demo-sso",
|
||||||
client_secret = os.getenv("KEYCLOAK_CLIENT_SECRET"),
|
client_secret = os.getenv("KEYCLOAK_CLIENT_SECRET"),
|
||||||
redirect_uri_scheme = "https",
|
redirect_uri_scheme = "http",
|
||||||
scope = "openid email profile"
|
scope = "openid email profile"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
resolver 192.168.21.2 ipv6=off;
|
||||||
|
|
||||||
lua_package_path "/usr/local/openresty/lualib/?.lua;;";
|
lua_package_path "/usr/local/openresty/lualib/?.lua;;";
|
||||||
|
|
||||||
lua_shared_dict discovery 1m;
|
lua_shared_dict discovery 1m;
|
||||||
|
|||||||
Reference in New Issue
Block a user