Do you mean:
-
Create a ssl_keyfile and ssl_certfile using "Let's Encrypt" [Can I use Nignx to do it?]
-
In app.py file, add two more lines: ssl_keyfile, ssl_certfile like below?
uvicorn doesn't seem to accept our log levels via getLogger, so we also
# pass it in explicitly here
uvicorn.run(
app,
host=host,
port=int(port),
log_level=get_log_level(),
log_config=_uvicorn_log_config,
ssl_keyfile="path to keyfile",
ssl_certfile = "path to cert file",
)