Replace Kuma iframe with live service health status tab
Uptime tab now polls /deploy/health-status (parallel HTTP checks) and shows a status grid with response times. Removes broken Kuma sub-path nginx locations. Auto-refreshes every 30s. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
05fa11b29a
commit
64efa435c8
2 changed files with 65 additions and 32 deletions
27
nginx.conf
27
nginx.conf
|
|
@ -18,33 +18,6 @@ server {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
# Kuma assets and websocket — must come before /monitor/ to match first
|
||||
location /monitor/assets/ {
|
||||
proxy_pass http://10.10.10.105:3002/assets/;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
location /monitor/socket.io/ {
|
||||
proxy_pass http://10.10.10.105:3002/socket.io/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_http_version 1.1;
|
||||
}
|
||||
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;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_http_version 1.1;
|
||||
# Rewrite Kuma's absolute /assets/ and /socket.io/ refs to /monitor/*
|
||||
proxy_set_header Accept-Encoding "";
|
||||
sub_filter '"/assets/' '"/monitor/assets/';
|
||||
sub_filter '"/socket.io/' '"/monitor/socket.io/';
|
||||
sub_filter_once off;
|
||||
}
|
||||
|
||||
location /deploy/ {
|
||||
proxy_pass http://10.10.10.105:9000/;
|
||||
proxy_set_header Host $host;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue