cookbooks/railsapp/templates/default/site.conf.erb in mana-0.0.8 vs cookbooks/railsapp/templates/default/site.conf.erb in mana-0.0.10

- old
+ new

@@ -22,16 +22,17 @@ proxy_pass http://unicorn_<%= node[:application] %>; break; } } - location ~* \.(js|css|png|jpg|gif)$ { - if ($query_string ~ "^[0-9]+$") { - access_log off; - expires max; - add_header Cache-Control public; - } + location ~ ^/(assets)/ { + gzip_static on; + access_log off; + expires max; + add_header Cache-Control public; + add_header Last-Modified ""; + add_header ETag ""; } } <% if node[:railsapp][:ssl] %> server { @@ -44,16 +45,16 @@ ssl_certificate_key <%= node[:current_path] %>/<%= node[:railsapp][:ssl_key_path] %>; proxy_set_header X-FORWARDED_PROTO https; root <%= node[:current_path] %>/public; - + location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_read_timeout <%= node[:railsapp][:request_timeout] %>s; - + # If you don't find the filename in the static files # Then request it from the unicorn server if (!-f $request_filename) { proxy_pass http://unicorn_<%= node[:application] %>; break;