From dfb5fe0c895535ba0f56dd661bfee4ffc25f47f8 Mon Sep 17 00:00:00 2001 From: RISE Date: Mon, 27 Apr 2026 01:45:59 +0800 Subject: [PATCH] aa --- app_web.py | 8 ++++++++ requirements.txt | 1 + 2 files changed, 9 insertions(+) diff --git a/app_web.py b/app_web.py index 04a4ad0..3dbf02f 100644 --- a/app_web.py +++ b/app_web.py @@ -1025,3 +1025,11 @@ async def api_stop_continuous(request: Request): msg = await service.stop_continuous() service._append(msg) return {"ok": True, "message": msg} + + +if __name__ == "__main__": + import uvicorn + + _host = os.getenv("WEB_BIND_HOST", "0.0.0.0") + _port = int(os.getenv("WEB_BIND_PORT", "8000")) + uvicorn.run("app_web:app", host=_host, port=_port, reload=False) diff --git a/requirements.txt b/requirements.txt index 9fc9ac2..6ca435c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,7 @@ Telethon>=1.28.0,<2 fastapi>=0.65.0,<1 uvicorn>=0.17.0,<1 +itsdangerous>=2.0.0 jinja2>=3.0.0,<4 python-multipart>=0.0.5 qrcode>=7.3.0