Skip to content

Commit

Permalink
PR #86 follow-up: Fix a couple code style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Apr 14, 2021
1 parent e533fba commit 1820e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: []

Expand Down
4 changes: 2 additions & 2 deletions templates/vhost.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1820e90

Please sign in to comment.