2019-12-31 18:43:43 +07:00
|
|
|
{% 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 {
|
2019-12-31 18:43:43 +07:00
|
|
|
{% 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
|
|
|
|
2019-12-31 18:43:43 +07:00
|
|
|
server_name {{ site | nginx_all_site_names | join(" ") }};
|
2018-03-23 00:39:10 +07:00
|
|
|
|
|
|
|
location / {
|
|
|
|
return 503;
|
|
|
|
}
|
|
|
|
}
|