blob: 2cc3653d9bdc3869014f7ec8ce5b35ab3753afe2 [file] [log] [blame]
{%- if site.auth is defined %}
{%- if site.auth.engine == 'basic' %}
auth_basic "Restricted";
{%- if site.auth.htpasswd is defined %}
auth_basic_user_file /etc/nginx/{{ site.auth.htpasswd }};
{%- else %}
auth_basic_user_file /etc/nginx/htpasswd;
{%- endif %}
{%- endif %}
{%- endif %}