Преглед изворни кода

Merge pull request #4894 from eduardpaul/feat-fix-pass_auth-template

Update _access.conf to fix access_list.pass_auth logic
jc21 пре 1 месец
родитељ
комит
fba14817e7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      backend/templates/_access.conf

+ 1 - 1
backend/templates/_access.conf

@@ -4,7 +4,7 @@
     auth_basic            "Authorization required";
     auth_basic_user_file  /data/access/{{ access_list_id }};
 
-    {% if access_list.pass_auth == 0 or access_list.pass_auth == true %}
+    {% if access_list.pass_auth == 0 or access_list.pass_auth == false %}
     proxy_set_header Authorization "";
     {% endif %}