|
|
|
@ -34,7 +34,7 @@ type ssl struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type unix struct {
|
|
|
|
|
Listen string
|
|
|
|
|
Listen string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// slave 作为slave存储端配置
|
|
|
|
@ -122,15 +122,15 @@ func Init(path string) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sections := map[string]interface{}{
|
|
|
|
|
"Database": DatabaseConfig,
|
|
|
|
|
"System": SystemConfig,
|
|
|
|
|
"SSL": SSLConfig,
|
|
|
|
|
"Unix": UnixConfig,
|
|
|
|
|
"Captcha": CaptchaConfig,
|
|
|
|
|
"Redis": RedisConfig,
|
|
|
|
|
"Thumbnail": ThumbConfig,
|
|
|
|
|
"CORS": CORSConfig,
|
|
|
|
|
"Slave": SlaveConfig,
|
|
|
|
|
"Database": DatabaseConfig,
|
|
|
|
|
"System": SystemConfig,
|
|
|
|
|
"SSL": SSLConfig,
|
|
|
|
|
"UnixSocket": UnixConfig,
|
|
|
|
|
"Captcha": CaptchaConfig,
|
|
|
|
|
"Redis": RedisConfig,
|
|
|
|
|
"Thumbnail": ThumbConfig,
|
|
|
|
|
"CORS": CORSConfig,
|
|
|
|
|
"Slave": SlaveConfig,
|
|
|
|
|
}
|
|
|
|
|
for sectionName, sectionStruct := range sections {
|
|
|
|
|
err = mapSection(sectionName, sectionStruct)
|
|
|
|
|