This commit is contained in:
2026-02-15 13:35:32 +08:00
parent 3b5461371c
commit 8065619f5e
2 changed files with 1 additions and 1 deletions

View File

@@ -152,7 +152,7 @@ if __name__ == "__main__":
# 使用 Python 函数参数的方式传递配置
uvicorn.run(
"fastAPI_main:app", # 注意:这里要改成你的文件名:app对象名
host="0.0.0.0",
host="127.0.0.1",
port=55600,
proxy_headers=True, # 对应 --proxy-headers
forwarded_allow_ips="*" # 对应 --forwarded-allow-ips="*"

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB