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

11 lines
415 B
Plaintext
Raw Normal View History

2018-03-23 00:39:10 +07:00
server {
2018-03-23 02:30:10 +07:00
listen {{ item.acme_port | default('80') }};
listen [::]:{{ item.acme_port | default('80') }};
2018-03-23 00:39:10 +07:00
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;
}
}