这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dalf
Copy link
Contributor

@dalf dalf commented Apr 12, 2021

What does this PR do?

  • outgoing.networks:

    • can contains network definition
    • propertiers: enable_http, verify, http2, max_connections, max_keepalive_connections,
      keepalive_expiry, local_addresses, support_ipv4, support_ipv6, proxies, max_redirects, retries
    • retries: 0 by default, number of times searx retries to send the HTTP request (using different IP & proxy each time)
    • local_addresses can be "192.168.0.1/24" (it supports IPv6)
    • support_ipv4 & support_ipv6: both True by default
      see Source ip select searx/searx#1034
  • each engine can define a "network" section:

    • either a full network description
    • either reference an existing network
  • all HTTP requests of engine use the same HTTP configuration (it was not the case before, see proxy configuration in master)

See

https://github.com/metasearch-lab/searx/wiki/Milestones#milestone-13---network

dalf added 3 commits April 10, 2021 15:38
patch engine initialization to skip HTTP request
(engine_init function in searx.engines.initialize_engines)
settings.yml:

* outgoing.networks:
   * can contains network definition
   * propertiers: enable_http, verify, http2, max_connections, max_keepalive_connections,
     keepalive_expiry, local_addresses, support_ipv4, support_ipv6, proxies, max_redirects, retries
   * retries: 0 by default, number of times searx retries to send the HTTP request (using different IP & proxy each time)
   * local_addresses can be "192.168.0.1/24" (it supports IPv6)
   * support_ipv4 & support_ipv6: both True by default
     see searx/searx#1034
* each engine can define a "network" section:
   * either a full network description
   * either reference an existing network

* all HTTP requests of engine use the same HTTP configuration (it was not the case before, see proxy configuration in master)
@dalf dalf merged commit 01cefff into master Apr 12, 2021
@return42
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants