mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 08:13:51 +08:00
FIX: Increase NGINX request header buffer (#18758)
This allows a large volume of cookies in request headers. Discourse itself tries to minimise cookie size, but we cannot control other cookies set by other tools on the same domain.
This commit is contained in:
parent
4b3e5133b0
commit
4e0f5eac42
|
@ -16,8 +16,12 @@ proxy_cache_path /var/nginx/cache inactive=1440m levels=1:2 keys_zone=one:10m ma
|
|||
|
||||
# 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;
|
||||
proxy_buffer_size 32k;
|
||||
proxy_buffers 4 32k;
|
||||
|
||||
# Increased from the default value to allow for a large volume of cookies in request headers
|
||||
# Discourse itself tries to minimise cookie size, but we cannot control other cookies set by other tools on the same domain.
|
||||
large_client_header_buffers 4 32k;
|
||||
|
||||
# If you are going to use Puma, use these:
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user