From d7b653d7a07dcf2619b781552f97359980a29b7c Mon Sep 17 00:00:00 2001 From: smallsolar Date: Tue, 3 Dec 2024 19:40:13 +0000 Subject: [PATCH] Add custom_50x/nginx.setup --- custom_50x/nginx.setup | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 custom_50x/nginx.setup 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