anchor.diff:  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;
  
positive.code: <% end -%>
  
    location ~ /sitemap\d*.xml.gz {
      root <%= node['supermarket']['app_directory'] %>/current/public;
  
      break;
    }
  
    location ~ ^/(assets|system)/ {
      root <%= node['supermarket']['app_directory'] %>/current/public;
  
      expires 1y;
      add_header Cache-Control public;
      add_header ETag "";
  
negative.code:   }
  
    if ($redirect_to_canonical = H) {
      return 301 http<%= node['supermarket']['nginx']['force_ssl'] ? 's' : '' %>://<%= node['supermarket']['fqdn'] %>$request_uri;
    }
  <% end -%>
  
  