aegwe4 / main.py
chaowenguo's picture
Upload 121 files
3b13b0e verified
raw
history blame contribute delete
513 Bytes
import os
import uvicorn
from loguru import logger
from app.config import config
if __name__ == "__main__":
logger.info(
"start server, docs: http://127.0.0.1:" + str(config.listen_port) + "/docs"
)
os.environ["HTTP_PROXY"] = config.proxy.get("http")
os.environ["HTTPS_PROXY"] = config.proxy.get("https")
uvicorn.run(
app="app.asgi:app",
host=config.listen_host,
port=config.listen_port,
reload=config.reload_debug,
log_level="warning",
)