Sha256: a78ec25b76d511da37eb432c7a2701807f802bb6794ad9ac9cc41c8b3b246198

Contents?: true

Size: 1.18 KB

Versions: 18

Compression:

Stored size: 1.18 KB

Contents

# adapted from:
# http://unicorn.bogomips.org/examples/nginx.conf

daemon  off;
worker_processes 1;
pid tmp/nginx.pid;
error_log tmp/nginx.error.log;

events {
  worker_connections 1024;
  accept_mutex off;
  use kqueue;
}

http {
  include /opt/local/etc/nginx/mime.types;
  access_log tmp/nginx.access.log;
  default_type application/octet-stream;
  sendfile on;
  tcp_nopush on;
  tcp_nodelay off;

  client_body_temp_path /tmp/client_temp;
  proxy_temp_path /tmp/proxy_temp;
  fastcgi_temp_path /tmp/fastcgi_temp;
  scgi_temp_path /tmp/scgi_temp;

  upstream app_server {
    server 127.0.0.1:9001 fail_timeout=0;
  }

  server {
    listen 9000 default;
    server_name _;
    root test/fixtures/example_application/public;

    client_max_body_size 4G;

    location /@spontaneous/js/ {
      alias application/js/;
    }
    location /@spontaneous/static/ {
      alias application/static/;
    }

    location / {
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
      proxy_redirect off;

      if (!-f $request_filename) {
        proxy_pass http://app_server;
        break;
      }

    }
    error_page 500 502 503 504 /500.html;
  }
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 config/nginx.conf
spontaneous-0.2.0.beta9 config/nginx.conf
spontaneous-0.2.0.beta8 config/nginx.conf
spontaneous-0.2.0.beta7 config/nginx.conf
spontaneous-0.2.0.beta6 config/nginx.conf
spontaneous-0.2.0.beta5 config/nginx.conf
spontaneous-0.2.0.beta4 config/nginx.conf
spontaneous-0.2.0.beta3 config/nginx.conf
spontaneous-0.2.0.beta2 config/nginx.conf
spontaneous-0.2.0.beta1 config/nginx.conf
spontaneous-0.2.0.alpha7 config/nginx.conf
spontaneous-0.2.0.alpha6 config/nginx.conf
spontaneous-0.2.0.alpha5 config/nginx.conf
spontaneous-0.2.0.alpha4 config/nginx.conf
spontaneous-0.2.0.alpha3 config/nginx.conf
spontaneous-0.2.0.alpha2 config/nginx.conf
spontaneous-0.2.0.alpha1 config/nginx.conf
spontaneous-0.1.0.alpha1 config/nginx.conf