From c23345a36737f9c46105cd1bbf60453ebb7cc989 Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Mon, 23 Jun 2025 09:57:09 +0900 Subject: [PATCH] Add Nginx location block for "Kanzlei Demo 2" with authentication and proxy settings --- nginx.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nginx.conf b/nginx.conf index 91043d6..8cc4589 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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 } } \ No newline at end of file