From 33509beaf7cc8ed228a48a3d1bd980e0121640ad Mon Sep 17 00:00:00 2001 From: Daste Date: Sun, 22 May 2022 01:57:00 +0200 Subject: [PATCH] Enable env configuration for `AvatarURLTemplate` Added an `env:"WAKAPI_AVATAR_URL_TEMPLATE"` option for the Avatar URL Template configuration setting. I wanted to configure this on my instance, but the only way now is through the yaml config file. --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 72b6b7d..572e455 100644 --- a/config/config.go +++ b/config/config.go @@ -70,7 +70,7 @@ type appConfig struct { InactiveDays int `yaml:"inactive_days" default:"7" env:"WAKAPI_INACTIVE_DAYS"` HeartbeatMaxAge string `yaml:"heartbeat_max_age" default:"4320h" env:"WAKAPI_HEARTBEAT_MAX_AGE"` CountCacheTTLMin int `yaml:"count_cache_ttl_min" default:"30" env:"WAKAPI_COUNT_CACHE_TTL_MIN"` - AvatarURLTemplate string `yaml:"avatar_url_template" default:"api/avatar/{username_hash}.svg"` + AvatarURLTemplate string `yaml:"avatar_url_template" default:"api/avatar/{username_hash}.svg" env:"WAKAPI_AVATAR_URL_TEMPLATE"` CustomLanguages map[string]string `yaml:"custom_languages"` Colors map[string]map[string]string `yaml:"-"` }