Sha256: 81b20b3a3f5a00be51f935862d07db310c1a0a157345a8674080520e72428824

Contents?: true

Size: 718 Bytes

Versions: 1

Compression:

Stored size: 718 Bytes

Contents

upstream application {
  server unix:/vagrant/tmp/pids/unicorn.sock fail_timeout=0;
}

limit_req_zone  $binary_remote_addr  zone=default:10m   rate=1r/s;

server {
  listen 80;

  # server_name <%= node[:hostname] %>;
  server_name *.dev.local

  root /vagrant;

  gzip off;

  access_log <%= node[:nginx][:log_dir] %>/localhost.access.log;
  error_log <%= node[:nginx][:log_dir] %>/application.error.log;

  location / {
    client_max_body_size 1000M;
    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://application;
    }
  }

  location /themes/ {
    alias /vagrant/themes/;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-up-0.0.1 templates/chef/cookbooks/nginx/templates/default/default-site.erb