docker/production: serve maintenance page on 502

pull/73/head
Christian Merten 1 year ago
parent c49be3f594
commit 7bb89dd2d9
Signed by: christian.merten
GPG Key ID: D953D69721B948B3

@ -1,5 +1,3 @@
version: "3.9"
x-kompass: x-kompass:
&kompass &kompass
image: kompass:production image: kompass:production

@ -6,6 +6,7 @@ server {
listen 80; listen 80;
server_name 127.0.0.1; server_name 127.0.0.1;
charset utf-8; charset utf-8;
error_page 502 /downtime/502.html;
location /static { location /static {
alias /var/www/jdav_web/static; alias /var/www/jdav_web/static;
@ -15,6 +16,10 @@ server {
alias /var/www/jdav_web/media; alias /var/www/jdav_web/media;
} }
location /downtime {
alias /var/www/jdav_web/static/downtime;
}
location / { location / {
uwsgi_pass uwsgi; uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params; include /etc/nginx/uwsgi_params;

@ -0,0 +1,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<link rel="stylesheet" href="/downtime/base.css">
<link rel="shortcut icon" type="image/png" href="/downtime/favicon.png"/>
<title>Wartungsarbeiten</title>
</head>
<body>
<div id="main">
<h2>Wartungsarbeiten</h2>
<p>Unsere Webseite ist zur Zeit wegen Wartungsarbeiten leider nicht verf&uuml;gbar. Bitte
versuche es zu einem sp&auml;teren Zeitpunkt nochmal.</p>
</div>
</body>
</html>

@ -0,0 +1,9 @@
#main {
text-align: center;
font-size: 15pt;
width: 60%;
margin: 0 auto;
overflow: hidden;
position: relative;
padding-top: 40pt;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Loading…
Cancel
Save