Add custom logo URL configuration option
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing

Bug: https://github.com/happyDomain/happydeliver/issues/6
This commit is contained in:
nemunaire 2026-01-24 21:42:35 +08:00
commit 8a10eef2f5
5 changed files with 14 additions and 2 deletions

View file

@ -66,6 +66,10 @@ func DeclareRoutes(cfg *config.Config, router *gin.Engine) {
appConfig["rbls"] = cfg.Analysis.RBLs
}
if cfg.CustomLogoURL != "" {
appConfig["custom_logo_url"] = cfg.CustomLogoURL
}
if appcfg, err := json.MarshalIndent(appConfig, "", " "); err != nil {
log.Println("Unable to generate JSON config to inject in web application")
} else {