summaryrefslogtreecommitdiff
path: root/roles/nginx/vhost/templates/no-tls.conf.j2
blob: ddb2f2295ef05a0805dbf90619e8d70cd061bab6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
server {
{% for listen in (nginx_vhost.listen | default(['80', '[::]:80'])) %}
    listen {{ listen }}{% if 'default' in nginx_vhost and nginx_vhost.default %} default_server{% endif %};
{% endfor %}
    server_name {{ nginx_vhost.hostnames | default(['_']) | join(' ') }};

    access_log {{ nginx_vhost.logs.access | default('/var/log/nginx/' ~ nginx_vhost.name ~ '_access.log') }};
    error_log {{ nginx_vhost.logs.error | default('/var/log/nginx/' ~ nginx_vhost.name ~ '_error.log') }};

{% include 'includes/body.j2' %}
}