anchor.diff:  <% end -%>
   
     location ~ /sitemap\d*.xml.gz {
  -    root <%= node['supermarket']['app_directory'] %>/current/public;
  -
  +    root <%= node['supermarket']['app_directory'] %>/public;
       break;
     }
   
     location ~ ^/(assets|system)/ {
  -    root <%= node['supermarket']['app_directory'] %>/current/public;
  -
  +    root <%= node['supermarket']['app_directory'] %>/public;
       expires 1y;
       add_header Cache-Control public;
       add_header ETag "";
  
positive.code: 
  server {
    listen <%= node['supermarket']['nginx']['ssl_port'] %>;
  <%   if node['supermarket']['ssl']['certificate'] && node['supermarket']['ssl']['certificate_key'] -%>
    ssl_certificate <%= node['supermarket']['ssl']['certificate'] %>;
    ssl_certificate_key <%= node['supermarket']['ssl']['certificate_key'] %>;
    ssl_prefer_server_ciphers on;
  
negative.code: upstream rails {
    server 127.0.0.1:<%= node['supermarket']['rails']['port'] %>;
  }
  
  <% if node['supermarket']['nginx']['cache']['enable'] -%>
  proxy_cache_path <%= node['supermarket']['nginx']['cache']['directory'] %>/supermarket levels=1:2 keys_zone=supermarket-cache:512m max_size=1000m inactive=600m;
  