ansible-config/roles/website/includes/base-static/templates/site.j2
2017-02-18 14:57:09 +01:00

22 lines
503 B
Django/Jinja

{% for port in ports %}
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 / {
include /etc/nginx/include/listing.conf;
}
{% endif %}
listen {{port.number}}{% if port.ssl %} ssl{% endif %};
listen [::]:{{port.number}}{% if port.ssl %} ssl{% endif %};
server_name {{ domains | join(" ") }};
root {{ document_root.path }};
}
{% endfor %}