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:
@@ -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/)
|
||||
|
||||
Reference in New Issue
Block a user