DEV: Increase nginx proxy buffer size (#18530)

* DEV: Increase nginx proxy buffer size

This is needed so we can reland the patch to move our asset preloading
from link tags in the response document to response headers.
This commit is contained in:
Rafael dos Santos Silva 2022-10-11 11:33:07 -03:00 committed by GitHub
parent f7db4150da
commit 4d525a70be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -14,8 +14,10 @@ upstream discourse {
# max_size limits the size of the cache
proxy_cache_path /var/nginx/cache inactive=1440m levels=1:2 keys_zone=one:10m max_size=600m;
# see: https://meta.discourse.org/t/x/74060
proxy_buffer_size 8k;
# Increased from the default value to acommodate large cookies during oAuth2 flows
# like in https://meta.discourse.org/t/x/74060 and large CSP and Link (preload) headers
proxy_buffer_size 16k;
proxy_buffers 4 16k;
# If you are going to use Puma, use these:
#