From 21df09d0ba5d3bb1c2115e60a70d235c0687e2ce Mon Sep 17 00:00:00 2001 From: Maxi Date: Fri, 18 Feb 2022 16:35:27 +0100 Subject: [PATCH] Added 502 error page for system startup --- nginx/conf.d/Recipes.conf | 7 +++++++ nginx/conf.d/errorpages/http502.html | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 nginx/conf.d/errorpages/http502.html diff --git a/nginx/conf.d/Recipes.conf b/nginx/conf.d/Recipes.conf index 71fbed51e..22829720f 100644 --- a/nginx/conf.d/Recipes.conf +++ b/nginx/conf.d/Recipes.conf @@ -12,5 +12,12 @@ server { location / { proxy_set_header Host $http_host; proxy_pass http://web_recipes:8080; + + error_page 502 /errors/http502.html; + } + + location /errors/ { + alias /etc/nginx/conf.d/errorpages/; + internal; } } diff --git a/nginx/conf.d/errorpages/http502.html b/nginx/conf.d/errorpages/http502.html new file mode 100644 index 000000000..e984b9782 --- /dev/null +++ b/nginx/conf.d/errorpages/http502.html @@ -0,0 +1,20 @@ + + + + + + 502 - Webservice currently unavailable + + + +

Tandoor Recipes is not yet available 502

+

+ Services are still trying to start.
+ Please allow up to 3 minutes after you started the application on your server.

+ If this status persists, check the application or docker logs for further information.
+ After checking and trying everything mentioned in the docs, you can request help on the project's GitHub page. +

+
+ + + \ No newline at end of file