Add custom_50x/nginx.setup

This commit is contained in:
smallsolar 2024-12-03 19:40:13 +00:00
parent 3b405ba79e
commit d7b653d7a0
1 changed files with 16 additions and 0 deletions

16
custom_50x/nginx.setup Normal file
View File

@ -0,0 +1,16 @@
location / {
client_max_body_size 512M;
proxy_pass http://192.168.1.2:3000;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
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;
}
error_page 500 502 503 504 /custom_50x.html;
location = /custom_50x.html {
root /usr/share/nginx/html;
internal;
}