bind 0.0.0.0

This commit is contained in:
2026-09-22 11:09:33 +08:00
parent 2006f7b4a4
commit d9ff32d2bb
3 changed files with 8 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import uvicorn
if __name__ == "__main__":
uvicorn.run(
"app.main:app",
host="127.0.0.1",
host=os.environ.get("HOST", "0.0.0.0"),
port=int(os.environ.get("PORT", "8765")),
reload=os.environ.get("RELOAD", "1") != "0",
reload=os.environ.get("RELOAD", "0") != "0",
)