2015-08-30 17:55:05 +02:00
|
|
|
{% 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;
|
|
|
|
|
2017-02-18 14:57:09 +01:00
|
|
|
{% if listing %}
|
|
|
|
location / {
|
2015-08-30 15:34:47 +02:00
|
|
|
include /etc/nginx/include/listing.conf;
|
2017-02-18 14:57:09 +01:00
|
|
|
}
|
2015-08-30 15:34:47 +02:00
|
|
|
|
2017-02-18 14:57:09 +01:00
|
|
|
{% endif %}
|
2015-08-30 17:55:05 +02:00
|
|
|
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
|
|
|
|
2015-08-30 17:55:05 +02:00
|
|
|
root {{ document_root.path }};
|
2015-08-29 23:44:14 +02:00
|
|
|
}
|
|
|
|
|
2015-08-30 17:55:05 +02:00
|
|
|
{% endfor %}
|