OLD | NEW |
1 <% if @aliases %> | 1 <% if @aliases %> |
2 <% @aliases.each do |vhost_alias| %> | 2 <% @aliases.each do |vhost_alias| %> |
3 server | 3 server |
4 { | 4 { |
5 listen 80; | 5 listen 80; |
6 listen [::]:80; | 6 listen [::]:80; |
7 listen 443 ssl spdy; | 7 listen 443 ssl spdy; |
8 listen [::]:443 ssl spdy; | 8 listen [::]:443 ssl spdy; |
9 | 9 |
10 server_name '<%= vhost_alias %>'; | 10 server_name '<%= vhost_alias %>'; |
11 | 11 |
12 ssl_certificate adblockplus.org_sslcert.pem; | 12 ssl_certificate <%= certificate %>; |
13 ssl_certificate_key adblockplus.org_sslcert.key; | 13 ssl_certificate_key <%= private_key %>; |
14 | 14 |
15 location / | 15 location / |
16 { | 16 { |
17 rewrite .* https://<%= vhost %>/ redirect; | 17 rewrite .* https://<%= vhost %>/ redirect; |
18 } | 18 } |
19 } | 19 } |
20 <% end %> | 20 <% end %> |
21 <% end %> | 21 <% end %> |
OLD | NEW |