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:
parent
1aa52c563e
commit
7dfaa5a9fb
1 changed files with 5 additions and 1 deletions
|
|
@ -38,11 +38,15 @@ server {
|
|||
client_max_body_size 50M;
|
||||
}
|
||||
|
||||
# 3. Health
|
||||
# 3. Health (slugged for browser use + bare for management monitor)
|
||||
location /forecasting/health {
|
||||
proxy_pass http://backend:8000/health;
|
||||
}
|
||||
|
||||
location = /health {
|
||||
proxy_pass http://backend:8000/health;
|
||||
}
|
||||
|
||||
# 4. SPA fallback
|
||||
location /forecasting/ {
|
||||
root /usr/share/nginx/html;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue