Modified 404/500 error

This commit is contained in:
2026-08-18 14:14:02 +09:00
parent dd304c1f31
commit ce2eb8bf4b
6 changed files with 41 additions and 27 deletions
+18
View File
@@ -0,0 +1,18 @@
if ($app_port = 0) {
return 502;
}
proxy_pass http://127.0.0.1:$app_port;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_connect_timeout 3s;
proxy_send_timeout 3600s;
proxy_read_timeout 3600s;
proxy_intercept_errors on;