Failover Service

This commit is contained in:
2026-04-25 12:22:20 +03:00
parent 1adf39749d
commit 23ccc9aacc
5 changed files with 150 additions and 102 deletions

17
docker/fallback/503.html Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EventHub - Maintenance</title>
<style>
body { font-family: 'Segoe UI', sans-serif; text-align: center; padding: 100px; background: #f4f4f9; color: #333; }
h1 { font-size: 3rem; color: #d32f2f; }
p { font-size: 1.4rem; }
</style>
</head>
<body>
<h1>503</h1>
<p>EventHub временно недоступен. Мы уже чиним.</p>
<p>Попробуйте обновить страницу через минуту.</p>
</body>
</html>

View File

@@ -0,0 +1,3 @@
FROM nginx:alpine
COPY default.conf /etc/nginx/conf.d/default.conf
COPY 503.html /usr/share/nginx/html/503.html

View File

@@ -0,0 +1,13 @@
server {
listen 80 default_server;
root /usr/share/nginx/html;
location / {
return 503;
}
error_page 503 /503.html;
location = /503.html {
internal;
}
}