lib/generators/kapify/nginx/templates/nginx_conf.erb in kapify-0.1.2 vs lib/generators/kapify/nginx/templates/nginx_conf.erb in kapify-0.1.3
- old
+ new
@@ -31,12 +31,10 @@
<% if nginx_use_ssl %>
proxy_set_header X-Forwarded-Proto https;
<% end %>
proxy_pass http://<%= application %>;
# limit_req zone=one;
- access_log <%= shared_path %>/log/nginx.access.log;
- error_log <%= shared_path %>/log/nginx.error.log;
}
location ~ ^/(assets|images|javascripts|stylesheets|swfs|system)/ {
gzip_static on;
expires max;
@@ -47,9 +45,12 @@
open_file_cache max=1000 inactive=500s;
open_file_cache_valid 600s;
open_file_cache_errors on;
break;
}
+
+ access_log <%= shared_path %>/log/nginx.access.log;
+ error_log <%= shared_path %>/log/nginx.error.log;
client_max_body_size 4G;
keepalive_timeout 120;
proxy_connect_timeout 120;