Update _access.conf

the pass_auth and satisfy_any properties and now boolean true/false, they do not == 1 so the switching in this template breaks
This commit is contained in:
Chris Maffey 2024-10-24 14:04:17 +13:00 committed by GitHub
parent ee41bb5562
commit dad8d0ca00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@
auth_basic "Authorization required";
auth_basic_user_file /data/access/{{ access_list_id }};
{% if access_list.pass_auth == 0 %}
{% if access_list.pass_auth == 0 or access_list.pass_auth == true %}
proxy_set_header Authorization "";
{% endif %}
@ -17,7 +17,7 @@
deny all;
# Access checks must...
{% if access_list.satisfy_any == 1 %}
{% if access_list.satisfy_any == 1 or access_list.satisfy_any == true %}
satisfy any;
{% else %}
satisfy all;