diff --git a/roles/searx/templates/upstream.json.j2 b/roles/searx/templates/upstream.json.j2 index 12fd8f0..8b90a71 100644 --- a/roles/searx/templates/upstream.json.j2 +++ b/roles/searx/templates/upstream.json.j2 @@ -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 %} ] } }