Sha256: a27f3e23f500314373ae3477f7b4902e9e7b422f5a11d8db1786ce8355f806e0

Contents?: true

Size: 1.62 KB

Versions: 7

Compression:

Stored size: 1.62 KB

Contents

# dummy
server {
    listen   80;
    server_name .dummy.aimbulance.com;

    server_tokens off;

    gzip             on;
    gzip_proxied     any;
    gzip_min_length  1100;
    gzip_buffers     12 4k;
    gzip_types text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    client_max_body_size	200M;
    client_body_buffer_size	128k;
    client_header_timeout	60;
    client_body_timeout		260;
    send_timeout		260;
    keepalive_timeout		60;

    large_client_header_buffers  4 4k;
    client_header_buffer_size 1k;

    connection_pool_size 256;
    ignore_invalid_headers on;
    postpone_output 1460;
    output_buffers 4 32k;
    request_pool_size 4k;

    passenger_enabled on;
    rails_env production;

    root /var/www/gems/sunrise/spec/dummy/public;

    location ~ /\.[^\/]+ {
        return 404;
    }
    
    location ~ ^/(assets|uploads)/ {
      expires 1y;
      add_header Cache-Control public;
      access_log off;
     
      # Some browsers still send conditional-GET requests if there's a
      # Last-Modified header or an ETag header even if they haven't
      # reached the expiry date sent in the Expires header.
      add_header Last-Modified "";
      add_header ETag "";
      break;
    }
    
    # This rewrites all the requests to the maintenance.html page if it exists in the doc root.
    if (-f $document_root/system/maintenance.html) {
      return 503;
    }
     
    error_page 503 @503;
    location @503 {
      # Serve static assets if found.
      if (-f $request_filename) {
        break;
      }
     
      rewrite ^(.*)$ /system/maintenance.html break;
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sunrise-cms-0.4.2 spec/tmp/config/nginx-config-passenger.sample
sunrise-cms-0.4.1 spec/tmp/config/nginx-config-passenger.sample
sunrise-cms-0.4.0 spec/tmp/config/nginx-config-passenger.sample
sunrise-cms-0.3.3 spec/tmp/config/nginx-config-passenger.sample
sunrise-cms-0.3.2 spec/tmp/config/nginx-config-passenger.sample
sunrise-cms-0.3.1 spec/tmp/config/nginx-config-passenger.sample
sunrise-cms-0.3.0 spec/tmp/config/nginx-config-passenger.sample