diff --git a/pkg/conf/conf.go b/pkg/conf/conf.go index d68cb0a0..43f24814 100644 --- a/pkg/conf/conf.go +++ b/pkg/conf/conf.go @@ -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,