Allow multiple basic auth accounts to be configured

This commit is contained in:
Marty Oehme 2021-10-23 22:02:48 +02:00
parent 4b440ec9b5
commit 3b27a5222a
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -32,10 +32,15 @@
"providers": { "providers": {
"http_basic": { "http_basic": {
"accounts": [ "accounts": [
{% for user in searx_authentication %}
{ {
"username": "{{ searx_authentication.username }}", "username": "{{ user.username }}",
"password": "{{ searx_authentication.password }}" "password": "{{ user.password }}"
} }
{% if not loop.last %}
,
{% endif %}
{% endfor %}
] ]
} }
} }