From cc48c09845af284dda8c80ae93d855580d12c956 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 31 Jul 2020 15:20:05 +0200 Subject: [PATCH] fix hns redirects --- docker/nginx/conf.d/client.conf | 6 ++++-- packages/handshake-api/Dockerfile | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 39733062..8434e017 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -189,7 +189,8 @@ server { # if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs proxy_buffer_size 128k; - proxy_buffers 4 128k; + proxy_buffers 4 256k; + proxy_busy_buffers_size 256k; # cache frequent (> 10) downloads for 24 hours proxy_cache skynet; @@ -218,7 +219,8 @@ server { # if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs proxy_buffer_size 128k; - proxy_buffers 4 128k; + proxy_buffers 4 256k; + proxy_busy_buffers_size 256k; # cache frequent (> 10) downloads for 24 hours proxy_cache skynet; diff --git a/packages/handshake-api/Dockerfile b/packages/handshake-api/Dockerfile index 59faf860..fa63071f 100644 --- a/packages/handshake-api/Dockerfile +++ b/packages/handshake-api/Dockerfile @@ -13,4 +13,4 @@ ENV HSD_API_KEY="foo" EXPOSE 3100 ENV NODE_ENV production -CMD [ "node", "src/index.js" ] +CMD [ "node", "--max-http-header-size=64000", "src/index.js" ]