summaryrefslogtreecommitdiffstats
path: root/roles/media
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2023-10-20 12:47:11 -0400
committerSacha Chua <sacha@sachachua.com>2023-10-20 12:47:11 -0400
commit8492da8c9c386a4512abff04150874ed9f5c0960 (patch)
tree80434576883c92f2865538c5cf90a351d8bed053 /roles/media
parent9ca8e4945866cd574e0abc23f210d98e0078ec5e (diff)
downloademacsconf-ansible-8492da8c9c386a4512abff04150874ed9f5c0960.tar.xz
emacsconf-ansible-8492da8c9c386a4512abff04150874ed9f5c0960.zip
protect root
Diffstat (limited to 'roles/media')
-rw-r--r--roles/media/templates/nginx-include2
1 files changed, 1 insertions, 1 deletions
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;