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:
parent
3746e798b6
commit
a17cb2a0a0
@ -7,6 +7,7 @@
|
|||||||
# http -> https vhost
|
# http -> https vhost
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
server_name {{ domain_name }} {{ domain_aliases }};
|
server_name {{ domain_name }} {{ domain_aliases }};
|
||||||
|
|
||||||
# redirect http -> https
|
# redirect http -> https
|
||||||
@ -20,6 +21,7 @@ server {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen {% if use_https == "yes" %} 443 ssl spdy{% else %} 80{% endif %};
|
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 }};
|
root {{ nginx_root_prefix }}/{{ domain_name }};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user