Commit 79f9caf0
Changed files (1)
config
config/nginx.conf
@@ -41,8 +41,8 @@ http {
root /home/cakeside/apps/www.cakeside.com/current/public;
passenger_enabled on;
rails_env staging;
- error_log /var/log/nginx/cakeside.error.log
- access_log /var/log/nginx/cakeside.access.log
+ error_log /var/log/nginx/cakeside.error.log;
+ access_log /var/log/nginx/cakeside.access.log;
location ~ ^/assets/ {
expires 1y;
add_header Cache-Control public;
@@ -58,7 +58,8 @@ http {
upload_set_form_field creation[content_type] "$upload_content_type";
upload_set_form_field creation[filepath] "$upload_tmp_path";
- upload_pass_form_field "^authenticity_token$|^format$";
+ upload_pass_form_field "^authenticity_token$|^creation.*";
+
upload_cleanup 400 404 499 500-505;
}
location @fast_upload_endpoint {