Update reverse proxy to use lua-resty-openidc image and adjust file paths in nginx.conf and docker-compose.yml
This commit is contained in:
@@ -5,7 +5,8 @@ events {
|
||||
}
|
||||
|
||||
http {
|
||||
lua_package_path "/etc/nginx/lua/?.lua;;";
|
||||
lua_package_path "/usr/local/openresty/lualib/?.lua;;";
|
||||
|
||||
lua_shared_dict discovery 1m;
|
||||
lua_shared_dict jwks 1m;
|
||||
lua_shared_dict sessions 10m;
|
||||
@@ -34,7 +35,7 @@ http {
|
||||
|
||||
# Protected root route (main site)
|
||||
location / {
|
||||
access_by_lua_file /usr/local/openresty/nginx/conf/auth.lua;
|
||||
access_by_lua_file /etc/nginx/auth.lua;
|
||||
|
||||
proxy_pass http://main-website:3000;
|
||||
proxy_set_header Host $host;
|
||||
@@ -45,7 +46,7 @@ http {
|
||||
|
||||
# Protected demo route
|
||||
location /lawfirm/demo1/ {
|
||||
access_by_lua_file /usr/local/openresty/nginx/conf/auth.lua;
|
||||
access_by_lua_file /etc/nginx/auth.lua;
|
||||
|
||||
rewrite ^/lawfirm/demo1(/.*)$ $1 break;
|
||||
proxy_pass http://ld1:3000;
|
||||
|
||||
Reference in New Issue
Block a user