diff options
author | danielvincent <danielgrippi@gmail.com> | 2010-11-22 09:34:40 +0300 |
---|---|---|
committer | danielvincent <danielgrippi@gmail.com> | 2010-11-22 09:36:37 +0300 |
commit | a3ce55c308d8678c1a087e9e808da08c8e580a0f (patch) | |
tree | 91023a9097b995e5abbdc4e2f4c690a46465bdc0 /chef | |
parent | 218aa1c0d61302ee928a35e8cb391f061d9119e7 (diff) |
allow nginx to take uploads up to 4MB. resolves issue when uploading large photos.
Diffstat (limited to 'chef')
-rw-r--r-- | chef/cookbooks/common/templates/default/nginx.conf.erb | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |