File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def self.defaults(options)
4444 domain : domain ,
4545 port : port ,
4646 root_path : Rails . public_path ,
47- template_path : File . expand_path ( "nginx/nginx.conf.erb" , __dir__ ) ,
47+ template_path : File . expand_path ( "nginx/templates/ nginx.conf.erb" , __dir__ ) ,
4848 ssl : true ,
4949 log : true ,
5050 ssl_certificate_path : Rails . root . join ( "tmp/nginx/_#{ domain } .pem" ) ,
Original file line number Diff line number Diff line change @@ -37,8 +37,12 @@ server {
3737
3838 <% if options[:ssl] %>
3939 # ssl
40+ <% if nginx_version >= Ruby::Nginx::Version.new("1.25.1") %>
4041 listen 443 ssl;
4142 http2 on;
43+ <% else %>
44+ listen 443 ssl http2;
45+ <% end %>
4246 ssl_certificate <%= options[:ssl_certificate_path] %> ;
4347 ssl_certificate_key <%= options[:ssl_certificate_key_path] %> ;
4448 <% end %>
You can’t perform that action at this time.
0 commit comments