diff options
Diffstat (limited to 'roles/nginx/vhost/templates/no-tls.conf.j2')
-rw-r--r-- | roles/nginx/vhost/templates/no-tls.conf.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/nginx/vhost/templates/no-tls.conf.j2 b/roles/nginx/vhost/templates/no-tls.conf.j2 new file mode 100644 index 00000000..317adaec --- /dev/null +++ b/roles/nginx/vhost/templates/no-tls.conf.j2 @@ -0,0 +1,17 @@ +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(' ') }}; + +{% if 'logs' in nginx_vhost %} +{% if 'access' in nginx_vhost.logs %} + access_log {{ nginx_vhost.logs.access }}; +{% endif %} +{% if 'error' in nginx_vhost.logs %} + error_log {{ nginx_vhost.logs.error }}; +{% endif %} + +{% endif %} +{% include 'includes/body.j2' %} +} |