Skip to content
Permalink
45cf9d1146
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
45 lines (44 sloc) 1.29 KB
http:
mode: debug # debug, test, release
port: 8080
auth:
salt: ""
smsClient:
host: "smtp.163.com"
port: 465
maxConns: 10
idleTimeout: 5
poolWaitTimeout: 3
from: "system <system@xxx.com>"
userName: ""
password: ""
authType: "plain" # login, plain
ssl: true
insecureSkipVerify: false
db:
type: mysql # mysql postgres
# dsn: host=HOST user=USER password=PASSWORD dbname=DATABASE port=PORT sslmode=disable TimeZone=Asia/Shanghai # POSTGRES DSN
dsn: USER:PASSWORD@tcp(HOST:PORT)/DATABASE?charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai # MYSQL DSN
debug: true
setMaxIdleConns: 2 # 设置空闲连接池中连接的最大数量
setMaxOpenConns: 4 # 设置打开数据库连接的最大数量
setConnMaxLifetime: 6 # 设置了连接可复用的最大时间 单位分钟
cache:
defaultExpiration: 0 # 默认缓存过期时间 单位 秒 0 永不过期
cleanupInterval: 600 # 清理过期缓存间隔 单位 秒 0 不自动清理
sentry:
level: "error" # debug info warn error panic fatal, default: error
dsn: ""
enable_tracing: true
traces_sample_rate: 1.0
log:
filename: /tmp/open.log
maxSize: 500
maxBackups: 3
maxAge: 3
level: "debug"
stdout: true
# sentry:
# dsn: "<your-sentry-telemetry-url>"
# enable_tracing: true
# traces_sample_rate: 1.0