fix hns redirects

This commit is contained in:
Karol Wypchlo 2020-07-31 15:20:05 +02:00
parent e663eebc9e
commit cc48c09845
2 changed files with 5 additions and 3 deletions

View File

@ -189,7 +189,8 @@ server {
# if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs # if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs
proxy_buffer_size 128k; proxy_buffer_size 128k;
proxy_buffers 4 128k; proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
# cache frequent (> 10) downloads for 24 hours # cache frequent (> 10) downloads for 24 hours
proxy_cache skynet; proxy_cache skynet;
@ -218,7 +219,8 @@ server {
# if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs # if you are expecting large headers (ie. Skynet-Skyfile-Metadata), tune these values to your needs
proxy_buffer_size 128k; proxy_buffer_size 128k;
proxy_buffers 4 128k; proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
# cache frequent (> 10) downloads for 24 hours # cache frequent (> 10) downloads for 24 hours
proxy_cache skynet; proxy_cache skynet;

View File

@ -13,4 +13,4 @@ ENV HSD_API_KEY="foo"
EXPOSE 3100 EXPOSE 3100
ENV NODE_ENV production ENV NODE_ENV production
CMD [ "node", "src/index.js" ] CMD [ "node", "--max-http-header-size=64000", "src/index.js" ]