wechat-robot/configs/config.yaml

67 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 8080
host: "0.0.0.0"
env: "development"
# PostgreSQL配置示例
database:
type: "postgres"
host: "localhost"
port: 5432
user: "postgres"
password: "password"
dbname: "wechat_demo"
sslmode: "disable"
# MySQL配置示例(被注释)
#database:
# type: "mysql"
# host: "localhost"
# port: 3306
# user: "root"
# password: "password"
# dbname: "wechat_demo"
# charset: "utf8mb4"
# SQLite配置示例(被注释) - 开发环境推荐
#database:
# type: "sqlite"
# dbname: "./data/wechat_demo.db"
redis:
host: "10.0.0.31"
port: 6379
password: "pGhQKwj7DE7FbFL1"
db: 13
docker:
host: "unix:///var/run/docker.sock"
apiVersion: "1.41"
imageName: "lxh01/xybotv2:latest"
network: "bridge"
memory: 123 # 容器内存限制MB
auth:
type: "password" # 支持 password 和 logto 两种
password:
secretKey: "your-secret-key-change-me" # 加密密钥
adminToken: "admin-token-change-me" # 密码
tokenExpiry: 24 # 登录有效期(小时)
logto:
endpoint: "https://your-logto-endpoint"
appId: "your-logto-app-id"
appSecret: "your-logto-app-secret"
logger:
level: "info"
file: "./logs/app.log"
# MinIO配置示例
minio:
endpoint: http://10.0.0.5:9000
host: http://10.0.0.5:9000
accessKey: xxx
secretKey: xxx
bucket: wechat
useSSL: false