2026-06-11 00:24:32 -04:00
|
|
|
server {
|
|
|
|
|
listen 8175;
|
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
|
|
proxy_intercept_errors on;
|
|
|
|
|
error_page 500 502 503 504 = @wait_page;
|
|
|
|
|
|
2026-06-16 05:29:57 -04:00
|
|
|
# Serve our own wait-page/icon assets locally first, but fall back to the
|
|
|
|
|
# real fedimint guardian (:8177) for ITS bundled /assets/*.css|js. Without
|
|
|
|
|
# the fallback, the guardian UI's stylesheets resolve to this local root,
|
|
|
|
|
# 404, and the app renders unstyled (B13 fixed the local icon; this fixes
|
|
|
|
|
# the guardian UI's own CSS).
|
2026-06-11 00:24:32 -04:00
|
|
|
location /assets/ {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
add_header Cache-Control "public, max-age=3600" always;
|
2026-06-16 05:29:57 -04:00
|
|
|
try_files $uri @guardian_assets;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location @guardian_assets {
|
|
|
|
|
proxy_pass http://127.0.0.1:8177;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
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 X-Forwarded-Proto $scheme;
|
2026-06-11 00:24:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
proxy_pass http://127.0.0.1:8177;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
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 X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location @wait_page {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
add_header Cache-Control "no-store" always;
|
|
|
|
|
try_files /index.html =503;
|
|
|
|
|
}
|
|
|
|
|
}
|