Allow multiple basic auth accounts to be configured
This commit is contained in:
parent
4b440ec9b5
commit
3b27a5222a
1 changed files with 7 additions and 2 deletions
|
|
@ -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 %}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue