mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
fix: config fields not generated on first startup (#1016)
* fix: config fields not generated on first startup * cleanup * fix reference * replace yaml module * remove duplicated fields * remove yaml.v3 as a direct dependency * update dependency * chore
This commit is contained in:
@@ -32,8 +32,10 @@ func listConfig(c *gin.Context) (*model.SettingResponse, error) {
|
||||
|
||||
conf := model.SettingResponse{
|
||||
Config: model.Setting{
|
||||
ConfigForGuests: config.ConfigForGuests,
|
||||
ConfigDashboard: config.ConfigDashboard,
|
||||
ConfigForGuests: config.ConfigForGuests,
|
||||
ConfigDashboard: config.ConfigDashboard,
|
||||
IgnoredIPNotificationServerIDs: config.IgnoredIPNotificationServerIDs,
|
||||
Oauth2Providers: config.Oauth2Providers,
|
||||
},
|
||||
Version: singleton.Version,
|
||||
FrontendTemplates: singleton.FrontendTemplates,
|
||||
@@ -48,6 +50,7 @@ func listConfig(c *gin.Context) (*model.SettingResponse, error) {
|
||||
conf = model.SettingResponse{
|
||||
Config: model.Setting{
|
||||
ConfigForGuests: configForGuests,
|
||||
Oauth2Providers: config.Oauth2Providers,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user