Sha256: 3dc8a63fad8f954aeecf0a4488068e2130632498eb53a008ac5a62d7b2cb21e2
Contents?: true
Size: 1005 Bytes
Versions: 1
Compression:
Stored size: 1005 Bytes
Contents
upstream unicorn_<%= fetch(:nginx_config_name) %> { <% if fetch(:unicorn_use_tcp) -%> <% roles(:app).each do |role| -%> server <%= role.hostname %>:<%= fetch(:unicorn_tcp_listen_port)%> fail_timeout=<%= fetch(:nginx_fail_timeout) %>; <% end -%> <% else -%> server unix:/tmp/unicorn.<%= fetch(:nginx_config_name) %>.sock fail_timeout=<%= fetch(:nginx_fail_timeout) %>; <% end -%> } <% if fetch(:nginx_use_ssl) -%> server { listen 80; server_name <%= fetch(:nginx_server_name) %>; rewrite ^(.*) https://$host$1 permanent; } <% end -%> <% # render the default server directive. If SSL is enabled, port 443 is used %> <%= template_to_s("_default_server_directive.erb", ssl_port: 443, nginx_pass_ssl_client_cert: false).to_s %> <% if fetch(:nginx_pass_ssl_client_cert) -%> <% # render the server directive with SSL client certificate authentication enabled on port 444 %> <%= template_to_s("_default_server_directive.erb", ssl_port: 444, nginx_pass_ssl_client_cert: true).to_s %> <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-unicorn-nginx-3.4.0 | lib/generators/capistrano/unicorn_nginx/templates/nginx_conf.erb |