mirror of
https://github.com/Gozargah/Marzban.git
synced 2026-05-17 08:35:56 +03:00
10 lines
311 B
Python
10 lines
311 B
Python
import uvicorn
|
|
from app import app
|
|
from config import UVICORN_HOST, UVICORN_PORT
|
|
|
|
|
|
if __name__ == "__main__":
|
|
# Do NOT change workers count for now
|
|
# multi-workers support isn't implemented yet for APScheduler and XRay module
|
|
uvicorn.run("main:app", host=UVICORN_HOST, port=UVICORN_PORT, workers=1)
|