
server {
  listen       443 ssl;
  server_name  buildwise.agileway.net;
  client_max_body_size 20M;

  ssl_certificate      /opt/etc/ssl/agileway_net_wildcard.alphassl.nginx.crt;
  ssl_certificate_key  /opt/etc/ssl/agileway_net_wildcard.key;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

  root /var/www/sinatra/buildwise/public;
  passenger_enabled on;
  passenger_min_instances 1;
  rails_env production;

  location ~*  ^/parallel/building  {
        access_log        off;
        log_not_found     off;
        expires 30d;
  }


  location ~*  \.(jpg|jpeg|png|gif|ico)$ {
        access_log        off;
        log_not_found     off;
        expires 30d;
  }

  location ~*  \.(js)$ {
        access_log        off;
        log_not_found     off;
        expires 150d;
  }

  location ~*  \.(css)$ {
        access_log        off;
        log_not_found     off;
        expires 150d;
  }
}