lib/capistrano/templates/nginx_conf.erb in capistrano3-puma-4.0.0 vs lib/capistrano/templates/nginx_conf.erb in capistrano3-puma-5.0.0.beta1

- old
+ new

@@ -18,11 +18,14 @@ } <% end -%> server { <% if fetch(:nginx_use_ssl) -%> - listen 443; - ssl on; + <% if fetch(:nginx_use_http2) -%> + listen 443 ssl http2; + <% else -%> + listen 443 ssl; + <% end -%> <% if fetch(:nginx_ssl_certificate) -%> ssl_certificate <%= fetch(:nginx_ssl_certificate) %>; <% else -%> ssl_certificate /etc/ssl/certs/<%= fetch(:nginx_config_name) %>.crt; <% end -%>