modify: worker 管理端点
This commit is contained in:
+8
-1
@@ -17,6 +17,11 @@ job_store_path = "scheduler_jobs.db"
|
||||
backend = "diskcache" # "diskcache"(默认) | "redis"
|
||||
cache_store_path = "./cache_data"
|
||||
|
||||
# 启动时该类 worker 的全局副本数优先来源(指 config/workers/<type>/config.toml 的 count):
|
||||
# "toml" (默认) = 经典模式:启动时用 toml 的 count 覆盖 cache 并写回为新的全局总量
|
||||
# "cache" = 全局模式:chongming-cache 为单一事实来源,toml 仅在 cache 缺失时引导
|
||||
launch_worker_count = "toml"
|
||||
|
||||
# redis 后端专用(backend = "redis" 时生效,均有默认值)
|
||||
# redis_host = "127.0.0.1"
|
||||
# redis_port = 6379
|
||||
@@ -50,7 +55,9 @@ access_sample_rate = 0.1
|
||||
allow_credentials = true
|
||||
allow_headers = ["*"]
|
||||
allow_methods = ["*"]
|
||||
allow_origins = ["*"]
|
||||
# 注意:allow_credentials=true 时 allow_origins 不能为 ["*"](starlette 会丢弃该 header),
|
||||
# 需显式列出来源;本地前端 dev 为 http://localhost:5173。
|
||||
allow_origins = ["http://localhost:5173", "http://127.0.0.1:5173"]
|
||||
|
||||
[development.mqtt]
|
||||
enabled = true
|
||||
|
||||
Reference in New Issue
Block a user