2018-03-23 00:39:10 +07:00
|
|
|
server {
|
2018-03-23 01:48:41 +07:00
|
|
|
{% for port in item.listen | default(['80', '[::]:80']) %}
|
2018-03-23 00:39:10 +07:00
|
|
|
listen {{ port }};
|
|
|
|
{% 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 %};
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 503;
|
|
|
|
}
|
|
|
|
}
|