Browse Source

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

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

2
README.md

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

4
templates/vhost.j2

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