chore: Update configs and build files
- .gitignore 更新 - Caddyfile LB 配置更新 - WeChat MP 菜单脚本更新 - package-lock.json 更新
This commit is contained in:
@@ -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
|
||||
# }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* 微信服务号自定义菜单(menu/create)。
|
||||
*
|
||||
* 变更规范:
|
||||
* - 只在本仓库修改 MENU 常量,禁止 SSH 到 105 直接改线上脚本。
|
||||
* - 流程:本地改码 → Git commit → 正式发布 → 再执行本脚本同步到微信 API。
|
||||
* - 详见 docs/105-server-operations.md
|
||||
*/
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { loadH5Environment } from './load-env.mjs';
|
||||
@@ -14,7 +22,7 @@ const MENU = {
|
||||
button: [
|
||||
{
|
||||
type: 'view',
|
||||
name: 'MeMind',
|
||||
name: 'TKMind',
|
||||
url: 'https://m.tkmind.cn',
|
||||
},
|
||||
{
|
||||
@@ -24,7 +32,7 @@ const MENU = {
|
||||
},
|
||||
{
|
||||
type: 'view',
|
||||
name: 'M广场',
|
||||
name: 'M发现',
|
||||
url: 'https://plaza.tkmind.cn',
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user