Update conf.go

This commit is contained in:
GuerraMorgan 2020-06-13 21:05:05 +08:00 committed by GitHub
parent af85580c4d
commit 74858759d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,10 @@ type ssl struct {
Listen string `validate:"required"`
}
type unix struct {
Listen string
}
// slave 作为slave存储端配置
type slave struct {
Secret string `validate:"omitempty,gte=64"`
@ -121,6 +125,7 @@ func Init(path string) {
"Database": DatabaseConfig,
"System": SystemConfig,
"SSL": SSLConfig,
"Unix": UnixConfig,
"Captcha": CaptchaConfig,
"Redis": RedisConfig,
"Thumbnail": ThumbConfig,