Merge pull request #403 from Indemnity83/empty-auth

Don't ask for username/password if none are defined
This commit is contained in:
jc21 authored and GitHub committed 2020-05-28 09:18:50 +10:00
commit 84d8fb0899
3 files changed
+8 -6

No files matched your search

+2
View File
@@ -23,9 +23,11 @@ server {
location / {
{% if access_list_id > 0 %}
{% if access_list.items.length > 0 %}
# Authorization
auth_basic "Authorization required";
auth_basic_user_file /data/access/{{ access_list_id }};
{% endif %}
# Access Rules
{% for client in access_list.clients %}