Skip to content

Commit

Permalink
Increase nginx buffers and maximal request size
Browse files Browse the repository at this point in the history
We can expect people posting big SQL files, so let's allow 128M.

Issue #32

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Aug 29, 2016
1 parent 0c3251b commit a76914f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions etc/nginx.conf
Expand Up @@ -34,10 +34,10 @@ http {
keepalive_timeout 15;
send_timeout 10;

client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 50M;
large_client_header_buffers 2 1k;
client_body_buffer_size 512K;
client_header_buffer_size 16k;
client_max_body_size 128M;
large_client_header_buffers 4 8k;

gzip on;
gzip_comp_level 2;
Expand Down
2 changes: 1 addition & 1 deletion etc/php.ini
Expand Up @@ -657,7 +657,7 @@ auto_globals_jit = On
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size = 64M
post_max_size = 128M

; Automatically add files before PHP document.
; http://php.net/auto-prepend-file
Expand Down

0 comments on commit a76914f

Please sign in to comment.