mirror of
https://github.com/geerlingguy/ansible-role-nginx.git
synced 2025-02-11 00:21:40 +01:00
PR #86 follow-up: Fix a couple code style issues.
This commit is contained in:
parent
e533fbab36
commit
1820e90b4c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user