Merge pull request #72 from NebulousLabs/large-headers-nginx-issue

add config to get around large headers issue
This commit is contained in:
Peter-Jan Brone 2020-03-09 12:31:06 +01:00 committed by GitHub
commit 92f07b0dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,10 @@ server {
proxy_set_header Access-Control-Allow-Origin: *; proxy_set_header Access-Control-Allow-Origin: *;
# make sure to override user agent header - siad requirement # make sure to override user agent header - siad requirement
proxy_set_header User-Agent: Sia-Agent; 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})$" { location ~ "^/file/([a-zA-Z0-9-_]{46})$" {
@ -48,6 +52,10 @@ server {
proxy_set_header Access-Control-Allow-Origin: *; proxy_set_header Access-Control-Allow-Origin: *;
# make sure to override user agent header - siad requirement # make sure to override user agent header - siad requirement
proxy_set_header User-Agent: Sia-Agent; 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 # SLL CERTIFICATES BELOW THIS LINE