File size: 366 Bytes
1404692
2c41c5f
1404692
 
 
2c41c5f
1404692
35f46fa
 
 
 
 
 
 
 
 
1404692
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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=30,
    timeout_graceful_shutdown=5,
)
server = uvicorn.Server(config)