From 8492da8c9c386a4512abff04150874ed9f5c0960 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Fri, 20 Oct 2023 12:47:11 -0400 Subject: protect root --- roles/media/templates/nginx-include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/media/templates') diff --git a/roles/media/templates/nginx-include b/roles/media/templates/nginx-include index 416e1ca..b42cacd 100644 --- a/roles/media/templates/nginx-include +++ b/roles/media/templates/nginx-include @@ -19,7 +19,7 @@ location /{{ emacsconf_year }}/backstage { auth_basic off; } {% endfor %} -{% if media_protect_root == 'true' %} +{% if media_protect_root %} location /{{ emacsconf_year }} { # TODO: Figure out how to make this properly controlled by the variable auth_basic_user_file /etc/nginx/sites-available/{{ media_server_name }}-{{ emacsconf_year }}-htpasswd; -- cgit v1.2.3