https://fastapi.tiangolo.com/deployment/https/
1
2
3
4
5
6
uvicorn.run("app.main:app",
host="0.0.0.0",
port=8432,
reload=True,
ssl_keyfile="./key.pem",
ssl_certfile="./cert.pem"
Reference
- https://dev.to/rajshirolkar/fastapi-over-https-for-development-on-windows-2p7d