Sha256: f10f4676e3f7ec81438a57952c60d781492275206130945d9d6cfdd163f2b97a
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
upstream unicorn { server unix:/tmp/unicorn.<%= fetch(:full_app_name) %>.sock fail_timeout=0; } server { server_name <%= fetch(:server_name) %>; listen 80; 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 { server_name <%= fetch(:server_name) %>; listen 443; 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano-cookbook-0.0.3 | lib/capistrano/cookbook/templates/nginx.conf.erb |
capistrano-cookbook-0.0.2 | lib/capistrano/cookbook/templates/nginx.conf.erb |