move proxy intercept errors to error-pages.conf

This commit is contained in:
Arthur Lu 2023-04-26 14:48:42 -07:00
parent 13cf19b466
commit 75e24764be
3 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,5 @@ http {
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
proxy_intercept_errors on;
include /etc/nginx/sites/*;
}

View File

@ -8,6 +8,7 @@ server {
include /etc/nginx/snippets/proxy-params.conf;
}
location /api/ {
proxy_intercept_errors off;
proxy_pass http://proxmoxaas.dmz:80;
include /etc/nginx/snippets/proxy-params.conf;
}

View File

@ -1,3 +1,5 @@
proxy_intercept_errors on;
error_page 400 /ErrorPages/HTTP400.html;
error_page 401 /ErrorPages/HTTP401.html;
error_page 402 /ErrorPages/HTTP402.html;