Skip to content

Commit

Permalink
Fix deprecated SSL context
Browse files Browse the repository at this point in the history
  • Loading branch information
djds committed Oct 17, 2022
1 parent 5d3f69e commit 856bbad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hwwwook/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""Run the app with uvicorn"""

from os import environ
from ssl import TLSVersion
from ssl import PROTOCOL_TLS_CLIENT

import uvicorn # type: ignore

Expand All @@ -13,7 +13,7 @@
api,
host="0.0.0.0",
port=8443,
ssl_version=TLSVersion.TLSv1_3,
ssl_version=PROTOCOL_TLS_CLIENT,
ssl_keyfile=environ.get("SSL_KEYFILE"),
ssl_certfile=environ.get("SSL_CERTFILE"),
ssl_cert_reqs=1,
Expand Down

0 comments on commit 856bbad

Please sign in to comment.