anchor.diff:        add_header Access-Control-Allow-Origin *;
       }
   
  -    <% if ENV["API_HOST"] %>
  -      location <%= ENV["API_PREFIX_PATH"] || "/api/" %> {
  -        proxy_set_header X-Real-IP $remote_addr;
  -        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  -        proxy_set_header X-NginX-Proxy true;
  -        proxy_pass http://api_server/;
  -        proxy_ssl_session_reuse off;
  -        proxy_set_header Host $http_host;
  -        proxy_redirect off;
  +    location / {
  +      expires off;
  +
  +      if (!-e $request_filename){
  +        rewrite ^(.*)$ /index.html break;
         }
  -    <% end %>
  +    }
     }
   }
  
positive.code: events {
    use epoll;
    accept_mutex on;
    worker_connections 1024;
  }
  
  http {
    gzip on;
    gzip_comp_level 2;
    gzip_min_length 512;
  
    server_tokens off;
  
    log_format l2met "measure#nginx.service=$request_time request_id=$http_x_request_id";
    access_log logs/nginx/access.log l2met;
  
negative.code:       auth_basic_user_file <%= "#{ENV["HOME"]}/config/htpasswd" %>;
      <% end %>
  
      <% if ENV["API_HOST"] %>
        location <%= ENV["API_PREFIX_PATH"] || "/api/" %> {
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header X-NginX-Proxy true;
          proxy_pass http://api_server/;
          proxy_ssl_session_reuse off;
          proxy_set_header Host $http_host;
          proxy_redirect off;
        }
      <% end %>
  
      location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|html|txt|htm)$ {
        expires max;
  