mirror of
https://github.com/searxng/searxng.git
synced 2025-07-22 20:59:16 +02:00
searx.network: add "verify" option to the networks
Each network can define a verify option: * false to disable certificate verification * a path to existing certificate. SearXNG uses SSL_CERT_FILE and SSL_CERT_DIR when they are defined see https://www.python-httpx.org/environment_variables/#ssl_cert_file
This commit is contained in:
parent
72f6367e23
commit
32e8c2cf09
7 changed files with 58 additions and 24 deletions
|
@ -334,7 +334,7 @@ def initialize(settings_engines=None, settings_outgoing=None):
|
|||
# see https://github.com/encode/httpx/blob/e05a5372eb6172287458b37447c30f650047e1b8/httpx/_transports/default.py#L108-L121 # pylint: disable=line-too-long
|
||||
default_params = {
|
||||
'enable_http': False,
|
||||
'verify': True,
|
||||
'verify': settings_outgoing['verify'],
|
||||
'enable_http2': settings_outgoing['enable_http2'],
|
||||
'max_connections': settings_outgoing['pool_connections'],
|
||||
'max_keepalive_connections': settings_outgoing['pool_maxsize'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue