Add Nginx location block for "Kanzlei Demo 2" with authentication and proxy settings

This commit is contained in:
2025-06-23 09:57:09 +09:00
parent c84d00bf20
commit c23345a367

View File

@@ -83,6 +83,18 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /lawfirm/demo2/ {
access_by_lua_file /usr/local/openresty/nginx/conf/auth.lua;
rewrite ^/lawfirm/demo2(/.*)$ $1 break;
proxy_pass http://ld2:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Add more locations as needed for other demos
}
}