feat: add support for custom branding and background settings in Config

This commit is contained in:
Bot
2026-04-16 17:18:48 +08:00
parent 23ece08076
commit bc32f8fce4
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -107,6 +107,11 @@ func updateConfig(c *gin.Context) (any, error) {
singleton.Conf.AgentRealIPHeader = sf.AgentRealIPHeader
singleton.Conf.AgentTLS = sf.AgentTLS
singleton.Conf.UserTemplate = sf.UserTemplate
singleton.Conf.CustomLogo = sf.CustomLogo
singleton.Conf.CustomDescription = sf.CustomDescription
singleton.Conf.CustomLinks = sf.CustomLinks
singleton.Conf.BackgroundImageDay = sf.BackgroundImageDay
singleton.Conf.BackgroundImageNight = sf.BackgroundImageNight
if err := singleton.Conf.Save(); err != nil {
return nil, newGormError("%v", err)