Merge branch 'feat/add-searx'
This commit is contained in:
commit
8e4c842ea9
2 changed files with 24 additions and 0 deletions
|
|
@ -8,3 +8,7 @@ searx_use_https: true
|
|||
|
||||
# the subdomain link searx will be reachable under
|
||||
subdomain_alias: search
|
||||
|
||||
searx_authentication:
|
||||
- username: mysearxusername
|
||||
password: JDJhJDE0JFdjUnQ5WWllcU8wa01xS0JBS2dlMy5zMEhRTmxqTXdIZmdjcTN6ZGFwRjJlYUdoSHAwRUhL # mysearxpassword
|
||||
|
|
|
|||
|
|
@ -26,6 +26,26 @@
|
|||
],
|
||||
{% endif %}
|
||||
"handle": [
|
||||
{% if searx_authentication is not undefined and not none %}
|
||||
{
|
||||
"handler": "authentication",
|
||||
"providers": {
|
||||
"http_basic": {
|
||||
"accounts": [
|
||||
{% for user in searx_authentication %}
|
||||
{
|
||||
"username": "{{ user.username }}",
|
||||
"password": "{{ user.password }}"
|
||||
}
|
||||
{% if not loop.last %}
|
||||
,
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{% endif %}
|
||||
{
|
||||
"handler": "reverse_proxy",
|
||||
"upstreams": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue