Sha256: 0a722607929fb212e13922f52caf8056e9082bc5867a0d8e67fd856386cb7c6c

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 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 <%= fetch(:nginx_server_port) %>;
  server_name <%= fetch(:nginx_server_name) %>;
  rewrite ^(.*) https://$host$1 permanent;
}
<% end -%>

<%= template_to_s("_default_server_directive.erb").to_s %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-unicorn-nginx-5.2.0 lib/generators/capistrano/unicorn_nginx/templates/nginx_conf.erb
capistrano-unicorn-nginx-5.1.0 lib/generators/capistrano/unicorn_nginx/templates/nginx_conf.erb
capistrano-unicorn-nginx-5.0.0 lib/generators/capistrano/unicorn_nginx/templates/nginx_conf.erb