Ai
1 Star 0 Fork 24

hahaa1111/pity

forked from 米洛/pity 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
proxy.py 448 Bytes
一键复制 编辑 原始数据 按行查看 历史
米洛 提交于 2022-07-05 23:12 +08:00 . update pity
import asyncio
import uvicorn
from fastapi import FastAPI
from loguru import logger
from config import Config
from pity_proxy import start_proxy
mock = FastAPI()
if Config.MOCK_ON:
asyncio.run(start_proxy(logger))
if __name__ == "__main__":
# uvicorn.run(pity, host="0.0.0.0", port=Config.SERVER_PORT, reload=False)
uvicorn.run("proxy:mock", host="0.0.0.0", port=Config.PROXY_PORT, reload=False, forwarded_allow_ips="*", workers=1)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hahaa1111/pity.git
git@gitee.com:hahaa1111/pity.git
hahaa1111
pity
pity
main

搜索帮助