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

  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;
  }
}
