From 66cd736dee0b0448b987bc694e7f46eccf92c77f Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 9 Mar 2020 12:21:00 +0100 Subject: [PATCH] add config to get around large headers issue --- setup-scripts/skynet-nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup-scripts/skynet-nginx.conf b/setup-scripts/skynet-nginx.conf index 625d26ad..f1593a5e 100644 --- a/setup-scripts/skynet-nginx.conf +++ b/setup-scripts/skynet-nginx.conf @@ -38,6 +38,10 @@ server { proxy_set_header Access-Control-Allow-Origin: *; # make sure to override user agent header - siad requirement proxy_set_header User-Agent: Sia-Agent; + + # if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs + #proxy_buffer_size 128k; + #proxy_buffers 4 128k; } location ~ "^/file/([a-zA-Z0-9-_]{46})$" { @@ -48,6 +52,10 @@ server { proxy_set_header Access-Control-Allow-Origin: *; # make sure to override user agent header - siad requirement proxy_set_header User-Agent: Sia-Agent; + + # if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs + #proxy_buffer_size 128k; + #proxy_buffers 4 128k; } # SLL CERTIFICATES BELOW THIS LINE