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