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:   }
  
    if ($redirect_to_canonical = H) {
      return 301 https://<%= node['supermarket']['fqdn'] %>$request_uri;
    }
  <% end -%>
  
  
negative.code: 
  server {
    listen <%= node['supermarket']['nginx']['ssl_port'] %>;
    server_name <%= node['supermarket']['fqdn'] %>;
  
  <%   if node['supermarket']['ssl']['certificate'] && node['supermarket']['ssl']['certificate_key'] -%>
    ssl on;
    ssl_certificate <%= node['supermarket']['ssl']['certificate'] %>;
    ssl_certificate_key <%= node['supermarket']['ssl']['certificate_key'] %>;
    ssl_prefer_server_ciphers on;
  