Skip to content

Commit

Permalink
fix: nginx proxy buffer size (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdeus committed Sep 18, 2024
1 parent 4ec9ae5 commit f6bf8a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contrib/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ http {

connection_pool_size 256;
client_header_buffer_size 1k;
large_client_header_buffers 4 2k;
large_client_header_buffers 4 16k;
request_pool_size 4k;

gzip on;
Expand Down Expand Up @@ -89,7 +89,10 @@ http {

location @rails {
proxy_http_version 1.1;
proxy_buffering off;
proxy_buffering on;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit f6bf8a5

Please sign in to comment.