ansible-config/roles/website/includes/base-static/templates/site.j2

20 lines
488 B
Plaintext
Raw Normal View History

{% for port in ports %}
2015-08-29 23:44:14 +02:00
server {
include /etc/nginx/include/no_logging.conf;
include /etc/nginx/include/no_dotfiles.conf;
include /etc/nginx/include/no_symlinks.conf;
2015-08-30 15:34:47 +02:00
{% if listing %}
include /etc/nginx/include/listing.conf;
{% endif %}
listen {{port.number}}{% if port.ssl %} ssl{% endif %};
listen [::]:{{port.number}}{% if port.ssl %} ssl{% endif %};
2015-08-29 23:44:14 +02:00
2015-08-30 15:34:47 +02:00
server_name {{ domains | join(" ") }};
2015-08-29 23:44:14 +02:00
root {{ document_root.path }};
2015-08-29 23:44:14 +02:00
}
{% endfor %}