sync: 同步 v1.0.4 并脱敏配置与镜像
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# config_default.yaml 配置文件
|
||||
# @Link https://github.com/xiujiecn/xiu-admin
|
||||
# @Copyright Copyright (c) 2025 LiXiujie
|
||||
# @Author Lxj <li@xiujie.cn>
|
||||
# @Author Lxj <xxx@example.com>
|
||||
# @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
# 系统配置
|
||||
system:
|
||||
@@ -78,6 +78,12 @@ warning:
|
||||
firstWarnDays: 30
|
||||
secondWarnDays: 15
|
||||
thirdWarnDays: 7
|
||||
monthly:
|
||||
# 每月15日09:00企业汇总;以下参数名已按阿里云审核通过的模板核实。
|
||||
# JSON字符串值支持 {count}、{expireDate};部署时同步到实际使用的配置文件。
|
||||
# 空值仍不发送短信,不影响站内系统通知;不复用验证码/通用流量预警模板。
|
||||
currentMonthParamsTemplate: '{"card_num":"{count}","expire_date":"{expireDate}"}' # SMS_512596191
|
||||
nextMonthParamsTemplate: '{"card_num":"{count}","expire_date":"{expireDate}"}' # SMS_512646156
|
||||
sms:
|
||||
enabled: false
|
||||
# HTTP 接口地址;如果配置 grpcAddr,则优先走 gRPC。
|
||||
@@ -89,11 +95,11 @@ warning:
|
||||
# 阿里云 serviceType=1,腾讯云 serviceType=2。
|
||||
serviceType: ""
|
||||
regionId: ""
|
||||
accessKeyId: ""
|
||||
accessKeySecret: ""
|
||||
sdkAppId: ""
|
||||
signName: ""
|
||||
templateId: ""
|
||||
accessKeyId: "${ACCESS_KEY_ID}"
|
||||
accessKeySecret: "${ACCESS_KEY_SECRET}"
|
||||
sdkAppId: "${SDK_APP_ID}"
|
||||
signName: "${SMS_SIGN_NAME}"
|
||||
templateId: "${TEMPLATE_ID}"
|
||||
# 阿里云模板参数通常需要 JSON;如果预警模板变量名是 content,可配置为 '{"content":{contentJson}}'。
|
||||
# 腾讯云多参数模板可按实际顺序配置,例如 '{firstItem}|{count}'。
|
||||
msgContentTemplate: ""
|
||||
@@ -101,22 +107,22 @@ warning:
|
||||
|
||||
wechat:
|
||||
enabled: false
|
||||
appId: "wx9e26905702c1a372"
|
||||
appSecret: ""
|
||||
templateId: "DMDP2PKktdtG1ES_3Ic1JcR0LGELQmWE6LunYyerHCY"
|
||||
appId: "${APP_ID}"
|
||||
appSecret: "${APP_SECRET}"
|
||||
templateId: "${TEMPLATE_ID}"
|
||||
page: "pages/message/index"
|
||||
timeout: "5s"
|
||||
|
||||
database:
|
||||
legacyCard:
|
||||
link: ""
|
||||
link: "${DB_DSN}"
|
||||
debug: false
|
||||
logger:
|
||||
path: "/app/logs/sql"
|
||||
level: "all"
|
||||
stdout: true
|
||||
default: # 分组名称,可自定义,默认为default
|
||||
link: "mysql:${DB_USER}:${DB_PASSWORD}@tcp(${DB_HOST}:3306)/iotlcm?charset=utf8mb4&parseTime=True&loc=Asia%2FShanghai"
|
||||
link: "${DB_DSN}"
|
||||
debug: true #开启调试模式
|
||||
charset: "utf8mb4" # (可选)数据库编码(如: utf8mb4/utf8/gbk/gb2312),一般设置为utf8mb4。默认为utf8。
|
||||
dryRun: false #ORM空跑(只读不写)
|
||||
@@ -134,10 +140,10 @@ redis:
|
||||
# 单实例配置
|
||||
default:
|
||||
mode: "single" #redis模式,支持:single|cluster|sentinel
|
||||
sentinelMasterName: "${REDIS_SENTINEL_MASTER}" #哨兵模式主节点名称
|
||||
address: 192.0.2.200:6379
|
||||
sentinelMasterName: "xiujie-master" #哨兵模式主节点名称
|
||||
address: 127.0.0.1:6379
|
||||
db: 0
|
||||
pass: "${REDIS_PASSWORD}"
|
||||
pass: "${SERVICE_PASSWORD}"
|
||||
minIdle: 5 #最小空闲连接数
|
||||
maxIdle: 30 #允许闲置的最大连接数
|
||||
maxActive: 5000 #最大活跃连接数
|
||||
@@ -149,9 +155,9 @@ queue:
|
||||
type: "asynq" # 队列类型
|
||||
asynq:
|
||||
redis:
|
||||
address: 192.0.2.200:6379
|
||||
address: 127.0.0.1:6379
|
||||
db: 0
|
||||
pass: "${REDIS_PASSWORD}"
|
||||
pass: "${SERVICE_PASSWORD}"
|
||||
user:
|
||||
concurrency: 10 # 最大同时执行的任务数量
|
||||
logLevel: 4 # 日志级别 DebugLevel 1, InfoLevel 2, WarnLevel 3, ErrorLevel 4, FatalLevel 5
|
||||
|
||||
Reference in New Issue
Block a user