disable ssl

This commit is contained in:
cheykrym 2026-03-18 01:54:17 +03:00
parent 9a01f91ea0
commit 54aef338ab
3 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
import httpx import httpx
from .ssl_transport import ssl_transport # from .ssl_transport import ssl_transport
# Ограничения пула соединений # Ограничения пула соединений
limits = httpx.Limits(max_connections=1000, max_keepalive_connections=200) limits = httpx.Limits(max_connections=1000, max_keepalive_connections=200)
@ -9,7 +9,7 @@ timeout = httpx.Timeout(connect=5.0, read=10.0, write=5.0, pool=10.0)
# Глобальный клиент # Глобальный клиент
client = httpx.AsyncClient( client = httpx.AsyncClient(
transport=ssl_transport, # transport=ssl_transport,
limits=limits, limits=limits,
timeout=timeout, timeout=timeout,
) )

View File

@ -1,8 +1,8 @@
import ssl # import ssl
import httpx # import httpx
from config import settings # from config import settings
ctx = ssl.create_default_context(cafile=settings.CA_CERT) # ctx = ssl.create_default_context(cafile=settings.CA_CERT)
ctx.load_cert_chain(certfile=settings.CLIENT_FULLCHAIN, keyfile=settings.CLIENT_PRIVKEY) # ctx.load_cert_chain(certfile=settings.CLIENT_FULLCHAIN, keyfile=settings.CLIENT_PRIVKEY)
ssl_transport = httpx.AsyncHTTPTransport(verify=ctx, http2=False, retries=2) # ssl_transport = httpx.AsyncHTTPTransport(verify=ctx, http2=False, retries=2)

View File

@ -1,6 +1,6 @@
[project] [project]
name = "common-lib" name = "common-lib"
version = "0.0.40" version = "0.0.41"
description = "Библиотека общих компонентов для микросервисов yobble" description = "Библиотека общих компонентов для микросервисов yobble"
authors = [{ name = "cheykrym", email = "you@example.com" }] authors = [{ name = "cheykrym", email = "you@example.com" }]
license = "MIT" license = "MIT"