docs: update config.yaml with new cache and concurrency settings

This commit is contained in:
ExplodingDragon
2026-02-01 01:10:10 +08:00
parent 57e07b3825
commit df15e4a168

View File

@@ -6,7 +6,7 @@ domain: example.com
database:
# 持久化存储配置
url: "memory://"
# 事件传递配置
# 事件传递配置
event:
url: "memory://"
auth:
@@ -19,16 +19,27 @@ cache:
meta: "memory://"
# 元数据缓存时长
meta_ttl: 1m
# 元数据刷新间隔
meta_refresh: 30s
# 元数据并发刷新限制
meta_refresh_concurrent: 16
# 响应数据缓存
blob: "memory://"
# 响应数据缓存时长
blob_ttl: 1m
# 最大单个响应数据缓存大小
blob_limit: 10MB
# 并发缓存写入限制
blob_concurrent: 16
# 404 响应缓存时长
blob_not_found_ttl: 1h
# 并发后端请求限制
backend_concurrent: 64
page:
# 默认页面分支
default_branch: gh-pages
# 默认 404 页面模板
404: /path/to/html.gotmpl
# 默认 500 页面模板
500: /path/to/html.gotmpl
500: /path/to/html.gotmpl