Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 7dcf88e8 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Fix proxy init with https pattern

parent 2523ef28
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -24,7 +24,6 @@ services:
    environment:
    environment:
      SEARX_SECRET: "${SEARX_SECRET}"
      SEARX_SECRET: "${SEARX_SECRET}"
      SEARX_PROXY_HTTP: "${SEARX_PROXY_HTTP}"
      SEARX_PROXY_HTTP: "${SEARX_PROXY_HTTP}"
      SEARX_PROXY_HTTPS: "${SEARX_PROXY_HTTPS}"
      SEARX_REDIS_HOST: "${SEARX_REDIS_HOST}"
      SEARX_REDIS_HOST: "${SEARX_REDIS_HOST}"
      SEARXNG_REDIS_URL: "redis://${SEARX_REDIS_HOST}:6379"
      SEARXNG_REDIS_URL: "redis://${SEARX_REDIS_HOST}:6379"
      SEARX_UI_DEFAULT_THEME: "${SEARX_UI_DEFAULT_THEME}"
      SEARX_UI_DEFAULT_THEME: "${SEARX_UI_DEFAULT_THEME}"
+1 −0
Original line number Original line Diff line number Diff line
@@ -339,6 +339,7 @@ def initialize(settings_engines=None, settings_outgoing=None):
    settings_outgoing["proxies"] = {}
    settings_outgoing["proxies"] = {}
    if 'SEARX_PROXY_HTTP' in environ:
    if 'SEARX_PROXY_HTTP' in environ:
        settings_outgoing["proxies"]["http"] = environ['SEARX_PROXY_HTTP'].split(",")
        settings_outgoing["proxies"]["http"] = environ['SEARX_PROXY_HTTP'].split(",")
        settings_outgoing["proxies"]["https"] = settings_outgoing["proxies"]["http"]


    # default parameters for AsyncHTTPTransport
    # default parameters for AsyncHTTPTransport
    # see https://github.com/encode/httpx/blob/e05a5372eb6172287458b37447c30f650047e1b8/httpx/_transports/default.py#L108-L121  # pylint: disable=line-too-long
    # see https://github.com/encode/httpx/blob/e05a5372eb6172287458b37447c30f650047e1b8/httpx/_transports/default.py#L108-L121  # pylint: disable=line-too-long