diff options
author | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-06-10 23:00:54 +0200 |
---|---|---|
committer | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-06-10 23:00:54 +0200 |
commit | 96aab043439885b7601b485c3ef116eec7218c5a (patch) | |
tree | bc73cabcc7d373140b633df9e2e98effee944684 | |
parent | Add octoprint2 (diff) |
Add error page
-rw-r--r-- | compose/nginx/nginx.conf | 2 | ||||
-rw-r--r-- | templates/nginx.conf.j2 | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/compose/nginx/nginx.conf b/compose/nginx/nginx.conf index af5b482..452e608 100644 --- a/compose/nginx/nginx.conf +++ b/compose/nginx/nginx.conf @@ -52,4 +52,6 @@ http { add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; include /etc/nginx/conf.d/*.conf; + + error_page 500 501 502 503 504 /50x.html; } diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 1f6c71a..b8896b7 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -53,4 +53,8 @@ server { {% endif %} } + location = /50x.html { + root /usr/share/nginx/html; + } + } |