ansible-ffibk/roles/service-nginx-firmware/templates/firmware_vhost.conf.j2

35 lines
696 B
Text
Raw Normal View History

2017-10-27 11:41:00 +02:00
server {
listen 80;
listen [::]:80;
2017-10-27 11:41:00 +02:00
server_name firmware.{{ http_domain_internal }} firmware.{{ http_domain_external }};
charset utf-8;
server_tokens off;
root /var/www/html/firmware;
location / {
autoindex on;
autoindex_exact_size off;
}
}
{% for mesh in meshes %}
server {
listen 80;
listen [::]:80;
2017-10-27 11:41:00 +02:00
server_name firmware.{{ mesh.http_domain_internal }} firmware.{{ mesh.http_domain_external }};
charset utf-8;
server_tokens off;
root /var/www/html/firmware/{{ mesh.site_name.lower() }};
location / {
autoindex on;
autoindex_exact_size off;
}
}
{% if not loop.last %}
{% endif %}
{% endfor %}