modify: worker重启失败 bug 修复
This commit is contained in:
+7
-2
@@ -53,8 +53,13 @@ allow_credentials = true
|
||||
allow_headers = ["*"]
|
||||
allow_methods = ["*"]
|
||||
# 注意:allow_credentials=true 时 allow_origins 不能为 ["*"](starlette 会丢弃该 header),
|
||||
# 需显式列出来源;本地前端 dev 为 http://localhost:5173。
|
||||
allow_origins = ["http://localhost:5173", "http://127.0.0.1:5173"]
|
||||
# 需显式列出来源;本地前端 dev 端口会变化(5173/5174/...)。
|
||||
allow_origins = [
|
||||
"http://localhost:5173",
|
||||
"http://127.0.0.1:5173",
|
||||
"http://localhost:5174",
|
||||
"http://127.0.0.1:5174",
|
||||
]
|
||||
|
||||
[development.mqtt]
|
||||
enabled = true
|
||||
|
||||
@@ -30,14 +30,14 @@ StartLimitBurst=5
|
||||
Type=simple
|
||||
|
||||
# 打包应用入口:Nuitka 编译产物,前台运行 gunicorn master(Linux 分支)
|
||||
ExecStart=/opt/chongming/chongming
|
||||
ExecStart=/data/chongming/chongming
|
||||
# 所有相对路径(config.toml / config/ / resources/*.mbank / static.svfs /
|
||||
# data/ / logs/ / uploads/)均相对工作目录解析,必须指向安装目录
|
||||
WorkingDirectory=/opt/chongming
|
||||
WorkingDirectory=/data/chongming
|
||||
|
||||
# 非特权用户运行(HTTP 8000 / MQTT 1883 / Zenoh 7447 等端口均无需 root)
|
||||
User=chongming
|
||||
Group=chongming
|
||||
User=linaro
|
||||
Group=linaro
|
||||
UMask=0027
|
||||
|
||||
# 每机可选覆盖(如 APP_WORKERS),文件不存在时忽略(- 前缀)
|
||||
|
||||
@@ -541,7 +541,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "chongming-worker"
|
||||
version = "0.4.3"
|
||||
version = "0.4.4"
|
||||
source = { registry = "http://124.71.68.6:3000/api/packages/chongming/pypi/simple/" }
|
||||
dependencies = [
|
||||
{ name = "chongming-cache" },
|
||||
@@ -552,9 +552,9 @@ dependencies = [
|
||||
{ name = "pydantic" },
|
||||
{ name = "tomli" },
|
||||
]
|
||||
sdist = { url = "http://124.71.68.6:3000/api/packages/chongming/pypi/files/chongming-worker/0.4.3/chongming_worker-0.4.3.tar.gz", hash = "sha256:163f8614ee5a701c609bc814ec3003697271e908cbfe386002c2fdc9675b2071" }
|
||||
sdist = { url = "http://124.71.68.6:3000/api/packages/chongming/pypi/files/chongming-worker/0.4.4/chongming_worker-0.4.4.tar.gz", hash = "sha256:0a129bd4034f6031911839792e3c83cfc78bbb706dccadde8f41feb754fe83c8" }
|
||||
wheels = [
|
||||
{ url = "http://124.71.68.6:3000/api/packages/chongming/pypi/files/chongming-worker/0.4.3/chongming_worker-0.4.3-py3-none-any.whl", hash = "sha256:91273b478abe49035aa071828341bf4fe92b51850ff5b8d5423e3f5693138a29" },
|
||||
{ url = "http://124.71.68.6:3000/api/packages/chongming/pypi/files/chongming-worker/0.4.4/chongming_worker-0.4.4-py3-none-any.whl", hash = "sha256:170c0e59b4fc3565d437db3c805eda343de5b324a0b574fdfdda65e3348145b4" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1003,15 +1003,15 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "jwcrypto"
|
||||
version = "1.5.9"
|
||||
version = "1.6.0"
|
||||
source = { registry = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple" }
|
||||
dependencies = [
|
||||
{ name = "cryptography" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/09/c7/00b87b49ffec758a5a957e448c863f6c4bb6223b3fab22c8c5161362ddcf/jwcrypto-1.5.9.tar.gz", hash = "sha256:dbbbfcdad7a6fc40cf3d5a635b11115fc42591b7ab869a36ad347a516a6e1c5d", size = 115793, upload-time = "2026-08-26T12:54:09.689Z" }
|
||||
sdist = { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/2a/f6/e5bede9abf478b463100b089bf0631fe84542e3e43418f1e99dd16928b95/jwcrypto-1.6.0.tar.gz", hash = "sha256:02a82b0a3a36b2553309d78c65e1c0e3350b640fe4091f53f66f582b11f49378", size = 116186, upload-time = "2026-09-01T13:09:45.153Z" }
|
||||
wheels = [
|
||||
{ url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/9e/54/b819eb2f8caedb1bccef0bf6188c051f0d898a177b271e1ed3a5cc0a8b66/jwcrypto-1.5.9-py3-none-any.whl", hash = "sha256:30b1c9afc898eefd112c31d836eb2d7a4c6febcac95d4aa727e963cd42911d8e", size = 120772, upload-time = "2026-08-26T12:54:08.637Z" },
|
||||
{ url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/48/c2/e97fbec034d597c829cb915c227135b87dbff3ee5a9570664d23e1fa7db8/jwcrypto-1.6.0-py3-none-any.whl", hash = "sha256:09ece277d48620079c90af7dfe84be085a229c1cbe06baa295de41e5019ac998", size = 121184, upload-time = "2026-09-01T13:09:43.911Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1096,7 +1096,7 @@ sdist = { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/14/f7/30
|
||||
|
||||
[[package]]
|
||||
name = "openai"
|
||||
version = "3.6.0"
|
||||
version = "3.7.0"
|
||||
source = { registry = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple" }
|
||||
dependencies = [
|
||||
{ name = "anyio" },
|
||||
@@ -1106,9 +1106,9 @@ dependencies = [
|
||||
{ name = "sniffio" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/ac/76/913b755a1a6b54e2d9140eb8d488aa0d47c7359b1d7eac5e864cb7913bbf/openai-3.6.0.tar.gz", hash = "sha256:18fe3f6e96390ef41ee27b152fc9effefca321c33673bd9b956a572493d3ab9b", size = 1455376, upload-time = "2026-08-28T22:29:18.268Z" }
|
||||
sdist = { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/ad/ba/6d46da4232f80cb5842280e024242e6fed163418ab81bebc1c83f693bb0b/openai-3.7.0.tar.gz", hash = "sha256:e836eb7effee89df802cd0c7d1bad8de8c993976cf238c44d5b5b844f5aefd38", size = 1455615, upload-time = "2026-09-02T01:30:54.555Z" }
|
||||
wheels = [
|
||||
{ url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/a1/94/805b87ecc951c49ec8f247f5e8eb324ab064bd2ad73b6a0e704dd49aa073/openai-3.6.0-py3-none-any.whl", hash = "sha256:508e2158bf971687f953b62e44b02f207792c815aac306816386d7ba34d37f5f", size = 1699841, upload-time = "2026-08-28T22:29:16.436Z" },
|
||||
{ url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/d3/9d/77e0f43f04ae51a3d21bb08bd372a752856b86ee22648b1458c93a623927/openai-3.7.0-py3-none-any.whl", hash = "sha256:008fa33e0a01dc71039c27355ef8f476eed690e8e48bec18183878dcd32fb841", size = 1699594, upload-time = "2026-09-02T01:30:52.445Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
Reference in New Issue
Block a user