PR #86 follow-up: Fix a couple code style issues.

This commit is contained in:
Jeff Geerling 2021-04-13 22:37:05 -05:00
parent e533fbab36
commit 1820e90b4c
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ Available variables are listed below, along with default values (see `defaults/m
nginx_listen_ipv6: true
Whether or not we want to listen on IPv6, this is enabled by default.
Whether or not to listen on IPv6 (applied to all vhosts managed by this role).
nginx_vhosts: []

View File

@ -2,9 +2,9 @@
{% if item.server_name_redirect is defined %}
server {
listen {{ item.listen | default('80') }};
{% if nginx_listen_ipv6 %}
{% if nginx_listen_ipv6 %}
listen [::]:{{item.listen | default('80') }};
{% endif %}
{% endif %}
server_name {{ item.server_name_redirect }};
return 301 $scheme://{{ item.server_name.split(' ')[0] }}$request_uri;
}