Add bare /health location to nginx for management monitor compatibility

The management monitor checks http://{host}:{port}/health (no slug prefix).
Adds a location = /health alias alongside the existing /forecasting/health
so both the slug URL (browser/NPM) and the bare path (monitor) work.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-13 17:07:24 +00:00
parent 1aa52c563e
commit 7dfaa5a9fb

View file

@ -38,11 +38,15 @@ server {
client_max_body_size 50M; client_max_body_size 50M;
} }
# 3. Health # 3. Health (slugged for browser use + bare for management monitor)
location /forecasting/health { location /forecasting/health {
proxy_pass http://backend:8000/health; proxy_pass http://backend:8000/health;
} }
location = /health {
proxy_pass http://backend:8000/health;
}
# 4. SPA fallback # 4. SPA fallback
location /forecasting/ { location /forecasting/ {
root /usr/share/nginx/html; root /usr/share/nginx/html;