Sha256: 58405d4234f7d2a88fa3feaa3925c8a8b6519b583721ccead0b4b4f271c611ac

Contents?: true

Size: 1.33 KB

Versions: 7

Compression:

Stored size: 1.33 KB

Contents

upstream unicorn {
  server unix:/tmp/unicorn.<%= fetch(:full_app_name) %>.sock fail_timeout=0;
}

server {
  listen 80 default deferred;
  root <%= fetch(:deploy_to) %>/current/public;

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }

  try_files $uri/index.html $uri @unicorn;
  location @unicorn {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://unicorn;
  }

  error_page 500 502 503 504 /500.html;
  client_max_body_size 4G;
  keepalive_timeout 10;
}

<% if fetch(:enable_ssl) %>
server {
  listen 443 default deferred;
  root <%= fetch(:deploy_to) %>/current/public;

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }

  try_files $uri/index.html $uri @unicorn;
  location @unicorn {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto https;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://unicorn;
  }

  error_page 500 502 503 504 /500.html;
  client_max_body_size 4G;
  keepalive_timeout 10;
  ssl on;
  ssl_certificate <%= fetch(:deploy_to) %>/shared/ssl_cert.crt;
  ssl_certificate_key <%= fetch(:deploy_to) %>/shared/ssl_private_key.key;
}#
<% end %>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
teleporter-0.0.15 lib/generators/initial/templates/capistrano/shared/nginx.conf.erb
teleporter-0.0.14 lib/generators/initial/templates/capistrano/shared/nginx.conf.erb
teleporter-0.0.13 lib/generators/initial/templates/capistrano/shared/nginx.conf.erb
teleporter-0.0.12 lib/generators/initial/templates/capistrano/shared/nginx.conf.erb
teleporter-0.0.11 lib/generators/initial/templates/capistrano/shared/nginx.conf.erb
capup-0.0.4 lib/capup/templates/nginx.conf.erb
capup-0.0.2 lib/capup/templates/nginx.conf.erb