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

pull/213/merge 3.0.0
Jeff Geerling 3 years ago
parent e533fbab36
commit 1820e90b4c
  1. 2
      README.md
  2. 4
      templates/vhost.j2

@ -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: []

@ -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;
}