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

22 lines
503 B
Text
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;
{% if listing %}
location / {
2015-08-30 15:34:47 +02:00
include /etc/nginx/include/listing.conf;
}
2015-08-30 15:34:47 +02:00
{% 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 %}