Skip to content

Commit

Permalink
fix(header-buffer-size): Increased header buffer size to prevent head…
Browse files Browse the repository at this point in the history
…er too large error (#1724)

Co-authored-by: Edward Malinowski <[email protected]>
  • Loading branch information
emalinowski and Edward Malinowski authored Sep 7, 2021
1 parent 0864105 commit bc37145
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Docker/python-nginx/python2.7-alpine3.7/uwsgi.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
server {
listen 80;

large_client_header_buffers 4 64k;

location / {
uwsgi_param REMOTE_ADDR $http_x_forwarded_for if_not_empty;
uwsgi_param REMOTE_USER $http_x_userid if_not_empty;
Expand Down Expand Up @@ -35,4 +37,4 @@ server {
location /504.html {
return 504 '{"error": "Request Timeout"}';
}
}
}
2 changes: 2 additions & 0 deletions Docker/python-nginx/python3.6-alpine3.7/uwsgi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ server {
server {
listen 80;

large_client_header_buffers 4 64k;

location / {
uwsgi_param REMOTE_ADDR $http_x_forwarded_for if_not_empty;
uwsgi_param REMOTE_USER $http_x_userid if_not_empty;
Expand Down
2 changes: 1 addition & 1 deletion kube/services/revproxy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ server {
# also incoming from client:
# * https://fullvalence.com/2016/07/05/cookie-size-in-nginx/
# * https://nginx.org/en/docs/http/ngx_http_core_module.html#client_header_buffer_size
large_client_header_buffers 4 8k;
large_client_header_buffers 4 64k;
client_header_buffer_size 4k;

#
Expand Down

0 comments on commit bc37145

Please sign in to comment.