Files
EventHubBack/docker/fallback/default.conf
T
aleksey a8e6dcb8f5
CI / test (push) Failing after 11m40s
fix(docker): crash loop fallback и observer-web на IFT
fallback: default_type вне if-блока nginx. observer-web: Hex/deps.compile в образе, без dev-watchers в контейнере.
2026-07-12 11:12:16 +03:00

22 lines
586 B
Plaintext

server {
listen 80 default_server;
root /usr/share/nginx/html;
location ~ ^/v1/ {
default_type application/json;
return 503 '{"error":"Service Unavailable","message":"EventHub is temporarily unavailable. Please try again later."}';
}
location / {
if ($http_accept ~* "application/json") {
return 503 '{"error":"Service Unavailable","message":"EventHub is temporarily unavailable. Please try again later."}';
}
return 503;
}
error_page 503 /503.html;
location = /503.html {
internal;
}
}