Karan Adhikari commited on
Update __init__.py
Browse files
Backend/fastapi/__init__.py
CHANGED
|
@@ -4,5 +4,13 @@ from Backend.fastapi.main import app
|
|
| 4 |
|
| 5 |
|
| 6 |
Port = Telegram.PORT
|
| 7 |
-
config = uvicorn.Config(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
server = uvicorn.Server(config)
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
Port = Telegram.PORT
|
| 7 |
+
config = uvicorn.Config(
|
| 8 |
+
app=app,
|
| 9 |
+
host="0.0.0.0",
|
| 10 |
+
port=Port,
|
| 11 |
+
loop="uvloop",
|
| 12 |
+
http="httptools",
|
| 13 |
+
timeout_keep_alive=30,
|
| 14 |
+
timeout_graceful_shutdown=5,
|
| 15 |
+
)
|
| 16 |
server = uvicorn.Server(config)
|