Wartungsarbeiten
+Unsere Webseite ist zur Zeit wegen Wartungsarbeiten leider nicht verfügbar. Bitte + versuche es zu einem späteren Zeitpunkt nochmal.
+diff --git a/docker/production/docker-compose.yaml b/docker/production/docker-compose.yaml index feabdbe..35d8daa 100644 --- a/docker/production/docker-compose.yaml +++ b/docker/production/docker-compose.yaml @@ -1,5 +1,3 @@ -version: "3.9" - x-kompass: &kompass image: kompass:production diff --git a/docker/production/nginx/kompass.nginx.conf b/docker/production/nginx/kompass.nginx.conf index 5b63859..c1b1103 100644 --- a/docker/production/nginx/kompass.nginx.conf +++ b/docker/production/nginx/kompass.nginx.conf @@ -6,6 +6,7 @@ server { listen 80; server_name 127.0.0.1; charset utf-8; + error_page 502 /downtime/502.html; location /static { alias /var/www/jdav_web/static; @@ -15,6 +16,10 @@ server { alias /var/www/jdav_web/media; } + location /downtime { + alias /var/www/jdav_web/static/downtime; + } + location / { uwsgi_pass uwsgi; include /etc/nginx/uwsgi_params; diff --git a/jdav_web/static/downtime/502.html b/jdav_web/static/downtime/502.html new file mode 100644 index 0000000..439f9c4 --- /dev/null +++ b/jdav_web/static/downtime/502.html @@ -0,0 +1,15 @@ + +
+ + + +Unsere Webseite ist zur Zeit wegen Wartungsarbeiten leider nicht verfügbar. Bitte + versuche es zu einem späteren Zeitpunkt nochmal.
+