Skip to content

Commit 2bcb942

Browse files
authored
Update _access.conf to ensure Authorization header remove when pass_auth = false or 0
Fixing prev commit as it's negative logic.
1 parent b3dac3d commit 2bcb942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/templates/_access.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
auth_basic "Authorization required";
55
auth_basic_user_file /data/access/{{ access_list_id }};
66

7-
{% if access_list.pass_auth == 1 or access_list.pass_auth == true %}
7+
{% if access_list.pass_auth == 0 or access_list.pass_auth == false %}
88
proxy_set_header Authorization "";
99
{% endif %}
1010

0 commit comments

Comments
 (0)