roles/nginx: Add initial IPv6 support to vhost template

Still need to add ip6tables rules

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-05-21 23:31:41 +03:00
parent 3746e798b6
commit a17cb2a0a0

View File

@ -7,6 +7,7 @@
# http -> https vhost
server {
listen 80;
listen [::]:80;
server_name {{ domain_name }} {{ domain_aliases }};
# redirect http -> https
@ -20,6 +21,7 @@ server {
server {
listen {% if use_https == "yes" %} 443 ssl spdy{% else %} 80{% endif %};
listen [::]{% if use_https == "yes" %}:443 ssl spdy{% else %}:80{% endif %};
root {{ nginx_root_prefix }}/{{ domain_name }};