Skip to content

Commit b3dac3d

Browse files
authored
Update _access.conf to fix access_list.pass_auth logic
Wrong logic to pass auth as header: when disabled (pass_auth=0) credentials are included in Authorization header. However as soon as you enable (pass_auth=1) they are not.
1 parent cd94863 commit b3dac3d

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 == 0 or access_list.pass_auth == true %}
7+
{% if access_list.pass_auth == 1 or access_list.pass_auth == true %}
88
proxy_set_header Authorization "";
99
{% endif %}
1010

0 commit comments

Comments
 (0)