feat: Error pages + Makefile improvements

Error pages: Add error pages for 404 and 50X errors by nginx
Makefile improvements: Remove shit.sh and replace it by improving the
Makefile
This commit is contained in:
Alexander Polynomdivision
2018-10-03 20:24:06 +02:00
parent f836145981
commit 082f254da0
6 changed files with 58 additions and 17 deletions

View File

@@ -34,6 +34,20 @@ http {
gzip on;
gzip_min_length 256K;
error_page 404 /lost.html;
error_page 500 502 503 504 /error.html;
# Status page for 404
location = /error.html {
root /srv/www;
}
# Status page for 50X
location = /lost.html {
root /srv/www;
}
# Reverse Proxy
location /api/ {
# Seems weird, but it is (Prevent /api/api/)