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": {
"http_basic": {
"accounts": [
{% for user in searx_authentication %}
{
"username": "{{ searx_authentication.username }}",
"password": "{{ searx_authentication.password }}"
"username": "{{ user.username }}",
"password": "{{ user.password }}"
}
{% if not loop.last %}
,
{% endif %}
{% endfor %}
]
}
}