You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
# console 服务配置模板(真实 console.yaml 被 gitignore;敏感值通过 .env 的 ${VAR} 注入)
|
|
type: "console"
|
|
version: 1.0
|
|
|
|
sys:
|
|
log:
|
|
FileName: "./log/console.log"
|
|
Loglevel: 5
|
|
MaxAgeTime: 7
|
|
IsDebug: true
|
|
|
|
postgres:
|
|
Dsn: "${POSTGRES_DSN}"
|
|
|
|
redis:
|
|
Addr: ["${REDIS_ADDR:-redis:6379}"]
|
|
Password: "${REDIS_PASSWORD:-}"
|
|
DB: 3
|
|
TLS: false
|
|
KeyPrefix: "Console"
|
|
|
|
nats:
|
|
URL: "${NATS_URL:-nats://nats:4222}"
|
|
Name: "console"
|
|
MaxReconnects: -1
|
|
ReconnectWait: 2
|
|
|
|
cos:
|
|
SecretID: "${COS_SECRET_ID:-}"
|
|
SecretKey: "${COS_SECRET_KEY:-}"
|
|
AppId: "1253517901"
|
|
Region: "ap-guangzhou"
|
|
BucketName: "deepsound-1253517901"
|
|
BucketURL: "https://deepsound-1253517901.cos.ap-guangzhou.myqcloud.com"
|
|
|
|
modules:
|
|
console:
|
|
HTTP:
|
|
Addr: ":8080"
|
|
StaticDir: "./consoleweb"
|
|
TokenKey: "${CONSOLE_TOKEN_KEY:-}"
|
|
AdminAccount: "${CONSOLE_ADMIN_ACCOUNT:-admin}"
|
|
AdminPassword: "${CONSOLE_ADMIN_PASSWORD:-li13451234}"
|
|
SiteName: "${CONSOLE_SITE_NAME:-翊迈SaaS管理平台}"
|
|
EncryptKey: "${FIELD_ENCRYPT_KEY:-}"
|
|
Stat:
|
|
Subject: "stats.event"
|
|
Stream: "STATS"
|
|
Durable: "console-stats"
|
|
Timezone: "Asia/Shanghai"
|
|
RecvLogCap: 2000
|
|
|