From 0d157307893b5698033984fc0e484771c628c7c9 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Wed, 1 Jul 2026 15:26:50 +0000 Subject: [PATCH] nginx: proxy /notices/ and /monitor/ through portal nginx Portal's nginx is the actual entry point (original NPM proxies the whole domain to the portal LXC). App paths need to be proxied here, not in the stack NPM. Same pattern as /api/auth/ which already works. Co-Authored-By: Claude Opus 4.8 (1M context) --- nginx.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nginx.conf b/nginx.conf index 69caeaa..3c3b582 100644 --- a/nginx.conf +++ b/nginx.conf @@ -11,6 +11,20 @@ server { add_header Cache-Control "no-store"; } + location /notices/ { + proxy_pass http://10.10.10.112:3080/notices/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + location /monitor/ { + proxy_pass http://10.10.10.105:3002/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location = /sw.js { add_header Cache-Control "no-store, no-cache, must-revalidate"; try_files $uri =404;