1 parent
01b24f830f
commit
1310b7b243
7 files changed
+40
-9
No files matched your search
@@ -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