summaryrefslogtreecommitdiff
path: root/roles/nginx/vhost/templates/generic.conf.j2
blob: 21aa69ff2fa87c168406e210690bfe8a1d9d0c96 (plain) (blame)
1
2
3
4
5
6
7
8
9
{% if 'tls' in nginx_vhost %}
{%   if (nginx_vhost.tls.http_redirect | default(true)) %}
{% include 'tls-with-redirect.conf.j2' %}
{%   else %}
{% include 'tls-only.conf.j2' %}
{%   endif %}
{% else %}
{% include 'no-tls.conf.j2' %}
{% endif %}