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": {
|
||||
"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 %}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue