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

19 lines
470 B
Plaintext
Raw Normal View History

{% set site = nginx_sites | nginx_search_by_ssl_name(item.name) %}
{% set __listen = site.listen | default(['80', '[::]:80']) %}
{% set __http_proxy_protocol_port = site.http_proxy_protocol_port | default([]) %}
2018-03-23 00:39:10 +07:00
server {
{% for port in __listen %}
listen {{ port }};
{% endfor %}
{% for port in __http_proxy_protocol_port %}
listen {{ port }} proxy_protocol;
{% endfor %}
2018-03-23 02:30:10 +07:00
server_name {{ site | nginx_all_site_names | join(" ") }};
2018-03-23 00:39:10 +07:00
location / {
return 503;
}
}