Failover Service
This commit is contained in:
17
docker/fallback/503.html
Normal file
17
docker/fallback/503.html
Normal 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>
|
||||
3
docker/fallback/Dockerfile
Normal file
3
docker/fallback/Dockerfile
Normal 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
|
||||
13
docker/fallback/default.conf
Normal file
13
docker/fallback/default.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user