chore: Update configs and build files

- .gitignore 更新
- Caddyfile LB 配置更新
- WeChat MP 菜单脚本更新
- package-lock.json 更新
This commit is contained in:
john
2026-06-27 08:25:11 +08:00
parent 1798c07d42
commit a2374c3cd6
4 changed files with 179 additions and 2 deletions
+21
View File
@@ -43,3 +43,24 @@ gadm.tkmind.cn {
}
}
}
# img.tkmind.cn:图片缓存与授权 (forward_auth → imgproxy)
# 在生产环境(105)上:
# 1. TLS 证书指向实际的 .acme.sh 目录
# 2. forward_auth 指向 103 的授权端点
# 3. reverse_proxy 指向 103 的 imgproxy 进程
img.tkmind.cn {
# 本地开发时如果没有证书,可注释掉 tls 行
# tls /Users/john/.acme.sh/img.tkmind.cn_ecc/fullchain.cer /Users/john/.acme.sh/img.tkmind.cn_ecc/img.tkmind.cn.key
# forward_auth 检查图片访问权限
# forward_auth 127.0.0.1:8081 /api/mindspace/v1/authorize-image {
# uri /api/mindspace/v1/authorize-image?asset_id={query.asset_id}
# copy_headers X-Request-Id
# }
# reverse_proxy 到 imgproxy(生产在 103
# reverse_proxy 127.0.0.1:20081 {
# flush_interval -1
# }
}