stremio / Backend /fastapi /__init__.py
DevDoCode
Replace Space code with weebzone/Telegram-Stremio (strip binaries)
36dde81
Raw History Blame Contribute Delete
366 Bytes
import uvicorn
from Backend.config import Telegram
from Backend.fastapi.main import app
#----- Uvicorn server bound to the FastAPI app
Port = Telegram.PORT
config = uvicorn.Config(
app=app,
host="0.0.0.0",
port=Port,
loop="uvloop",
http="httptools",
timeout_keep_alive=60,
timeout_graceful_shutdown=5,
)
server = uvicorn.Server(config)