From a3ce55c308d8678c1a087e9e808da08c8e580a0f Mon Sep 17 00:00:00 2001 From: danielvincent Date: Sun, 21 Nov 2010 22:34:40 -0800 Subject: [PATCH] allow nginx to take uploads up to 4MB. resolves issue when uploading large photos. --- chef/cookbooks/common/templates/default/nginx.conf.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chef/cookbooks/common/templates/default/nginx.conf.erb b/chef/cookbooks/common/templates/default/nginx.conf.erb index 633c082f7..3d9bb2ba4 100644 --- a/chef/cookbooks/common/templates/default/nginx.conf.erb +++ b/chef/cookbooks/common/templates/default/nginx.conf.erb @@ -75,6 +75,9 @@ http { proxy_redirect off; proxy_buffering off; + client_max_body_size 4M; + client_body_buffer_size 128K; + if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; }