Commit 79f9caf0

mo k <mo@mokhan.ca>
2012-10-14 21:18:22
update nginx regex to pass the rest of the creation form params through to rails.
1 parent 7ce066c
Changed files (1)
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 {