Skip to content

Commit

Permalink
fix(nginx): too big request header when cookie is defined (Joxit#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
itzwam authored Mar 10, 2024
1 parent 6c3c27e commit dc9bdcb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ server {
# charset koi8-r;
# access_log /var/log/nginx/host.access.log main;

# disable any limits to avoid HTTP 413 for large image uploads
# disable any limits to avoid HTTP 413 for large image uploads and 400 on large headers (eg: cookie)
client_max_body_size 0;
client_body_buffer_size 32k;
client_header_buffer_size 8k;
large_client_header_buffers 8 64k;

# required to avoid HTTP 411: see Issue #1486 (https://github.com/moby/moby/issues/1486)
chunked_transfer_encoding on;
Expand Down

0 comments on commit dc9bdcb

Please sign in to comment.