Linux 一键安装命令

This commit is contained in:
naiba
2021-08-10 20:04:58 +08:00
parent 4740a41e36
commit 985ecc7c65
9 changed files with 62 additions and 110 deletions

View File

@@ -452,6 +452,7 @@ type settingForm struct {
EnableIPChangeNotification string
IgnoredIPNotification string
Oauth2Type string
GRPCHost string
Cover uint8
}
@@ -466,6 +467,7 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
}
dao.Conf.EnableIPChangeNotification = sf.EnableIPChangeNotification == "on"
dao.Conf.Cover = sf.Cover
dao.Conf.GRPCHost = sf.GRPCHost
dao.Conf.IgnoredIPNotification = sf.IgnoredIPNotification
dao.Conf.Site.Brand = sf.Title
dao.Conf.Site.Theme = sf.Theme