@@ -10,6 +10,7 @@ type Cfg struct {
|
||||
FileSystem *WebdavConfig `env:", prefix=FILESYSTEM_"`
|
||||
Cache *ValkeyConfig `env:", prefix=CACHE_"`
|
||||
Image *ImageConfig `env:", prefix=IMAGE_"`
|
||||
Tracking *UmamiConfig `env:", prefix=TRACKING_"`
|
||||
}
|
||||
|
||||
type WebdavConfig struct {
|
||||
@@ -36,6 +37,11 @@ type ImageConfig struct {
|
||||
Quality int `env:"QUALITY"`
|
||||
}
|
||||
|
||||
type UmamiConfig struct {
|
||||
ScriptSrc string `env:"SCRIPT_SRC"`
|
||||
WebsiteID string `env:"WEBSITE_ID"`
|
||||
}
|
||||
|
||||
func Read(ctx context.Context) (cfg Cfg, err error) {
|
||||
cfg = Default()
|
||||
err = envconfig.ProcessWith(ctx, &envconfig.Config{
|
||||
|
||||
Reference in New Issue
Block a user