fix: say the server is down and keep retrying instead of a database error (#1637)

This commit is contained in:
LukeGus committed 2026-10-15 21:40:07 -05:00
1 parent c3f6db69e9
commit 6084ed4d3c
6 files changed
+32 -5

No files matched your search

+4 -1
View File
@@ -476,9 +476,12 @@ http {
}
error_page 500 502 503 504 /50x.html;
# Only nginx's own errors land here (the backend is down or too slow).
# There is no 50x page, so answer directly instead of a 404.
location = /50x.html {
root /app/html;
internal;
default_type application/json;
return 502 '{"error":"The Termix server is not responding"}';
}
}
}
+4 -1
View File
@@ -445,9 +445,12 @@ http {
}
error_page 500 502 503 504 /50x.html;
# Only nginx's own errors land here (the backend is down or too slow).
# There is no 50x page, so answer directly instead of a 404.
location = /50x.html {
root /app/html;
internal;
default_type application/json;
return 502 '{"error":"The Termix server is not responding"}';
}
}
}