mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-10-19 03:24:04 +07:00
Autoconfigure ipv6 on fakesite
This commit is contained in:
1 parent
2bab49221a
commit
19a85ca381
1 file changed
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
server {
|
server {
|
||||||
{% for port in item.listen | default([80]) %}
|
{% for port in item.listen | default(['80', '[::]:80']) %}
|
||||||
listen {{ port }};
|
listen {{ port }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
server_name {% if item.name is string %}{{ item.name }}{% else %}{{ item.name | join(" ") }}{% endif %}{% if item.redirect_from is defined %} {% if item.redirect_from is string %}{{ item.redirect_from }}{% else %}{{ item.redirect_from | join(" ") }}{% endif %}{% endif %};
|
server_name {% if item.name is string %}{{ item.name }}{% else %}{{ item.name | join(" ") }}{% endif %}{% if item.redirect_from is defined %} {% if item.redirect_from is string %}{{ item.redirect_from }}{% else %}{{ item.redirect_from | join(" ") }}{% endif %}{% endif %};
|
||||||
|
|||||||
Reference in new issue
Block a user