ansible-nginx/templates/etc/nginx/conf.d/FAKESITE.conf.j2

11 lines
396 B
Plaintext
Raw Normal View History

2018-03-23 00:39:10 +07:00
server {
{% for port in item.listen | default([80]) %}
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;
}
}