diff --git a/custom_50x/nginx.setup b/custom_50x/nginx.setup new file mode 100644 index 0000000..7cf387d --- /dev/null +++ b/custom_50x/nginx.setup @@ -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; + } \ No newline at end of file