Permalink
Cannot retrieve contributors at this time
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?
eoefans-api/config/config.template.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
45 lines (44 sloc)
1.29 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |