Add custom logo URL configuration option
Bug: https://github.com/happyDomain/happydeliver/issues/6
This commit is contained in:
parent
64ba6932f7
commit
8a10eef2f5
5 changed files with 14 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue