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' %} }