mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
14 lines
412 B
Python
14 lines
412 B
Python
import os, uvicorn, dotenv
|
|
|
|
dotenv.load_dotenv()
|
|
|
|
if __name__ == "__main__":
|
|
uvicorn.run(
|
|
"comet.main:app",
|
|
host=os.getenv("HOST", "127.0.0.1"),
|
|
port=int(os.getenv("PORT", "8000")),
|
|
workers=int(os.getenv("FASTAPI_WORKERS", 2*(os.cpu_count() or 1))),
|
|
# ssl_keyfile="./key.pem", # For development
|
|
# ssl_certfile="./cert.pem" # For development
|
|
)
|