15 lines
486 B
Text
15 lines
486 B
Text
<% if @include_files %><% @include_files.each do |file| -%>
|
|
include <%= file %>;
|
|
<% end -%><% end -%>
|
|
<% if @vhost_cfg_append -%><% @vhost_cfg_append.each do |key,value| -%>
|
|
<%= key %> <%= value %>;
|
|
<% end -%>
|
|
<% end -%>
|
|
}
|
|
<% if @rewrite_www_to_non_www -%>
|
|
server {
|
|
listen <%= @listen_ip %>:<%= @ssl_port %> ssl;
|
|
server_name www.<%= @name.gsub(/^www\./, '') %>;
|
|
rewrite ^ https://<%= @name.gsub(/^www\./, '') %>$uri permanent;
|
|
}
|
|
<% end %>
|