summaryrefslogtreecommitdiff
path: root/roles/nginx/vhost/templates/no-tls.conf.j2
blob: 29a62c8af5e9d7183cd6b99c6517f9c5414df2d1 (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' %}
}