Sha256: 04e72d8fdb27e14df6680cdbb435087838cc4438c32e2d1144698ee9865f9e36

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 Bytes

Contents

upstream <%= application %> {
  server <%= "unix:#{shared_path}/sockets/unicorn.sock fail_timeout=0" %>;
}

server {
  client_max_body_size 4G;
  server_name <%= server_name %>;
  keepalive_timeout 5;
  root <%= "#{deploy_to}/current/public" %>;
  try_files $uri/index.html $uri.html $uri @<%= application %>;

  location @<%= application %> {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://<%= application %>;
  }

  if (-f $document_root/system/maintenance.html) {
    return 503;
  }

  error_page 500 502 504 /500.html;
  location = /500.html {
    root <%= "#{deploy_to}/current/public" %>;
  }

  error_page 503 @maintenance;
  location @maintenance {
    rewrite  ^(.*)$  /system/maintenance.html break;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-nginx-0.0.2 lib/generators/capistrano/nginx/templates/_nginx_conf.erb