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) <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-01 15:26:50 +00:00
parent 06182363cf
commit 0d15730789

View file

@ -11,6 +11,20 @@ server {
add_header Cache-Control "no-store"; 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 { location = /sw.js {
add_header Cache-Control "no-store, no-cache, must-revalidate"; add_header Cache-Control "no-store, no-cache, must-revalidate";
try_files $uri =404; try_files $uri =404;