templates/rails_app/config/server/nginx.conf.tt in railman-0.1.0 vs templates/rails_app/config/server/nginx.conf.tt in railman-0.1.1
- old
+ new
@@ -57,14 +57,16 @@
listen 80;
server_name <%= @domains.join(' ') %>;
return 301 https://<%= @domain %>$request_uri;
}
+<% if @www_domain %>
server {
listen 443 ssl;
server_name <%= @www_domain %>;
return 301 $scheme://<%= @domain %>$request_uri;
# Let's Encrypt certificates
ssl_certificate /etc/letsencrypt/live/<%= @domain %>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<%= @domain %>/privkey.pem;
}
+<% end %>