Files
schreifuchs.ch/internal/pkg/config/default.go
T
schreifuchs 83a239f580
release.yaml / publish (push) Successful in 4m8s
fix(tracking): enable performance
2026-09-30 15:33:17 +02:00

28 lines
575 B
Go

package config
import "time"
func Default() Cfg {
return Cfg{
Image: &Image{
Concurency: 10,
Quality: 80,
CacheLifetime: time.Hour * 24 * 31,
},
Tracking: &Umami{
ScriptSrc: "https://umami.schreifuchs.ch/script.js",
RecorderSrc: "https://umami.schreifuchs.ch/recorder.js",
WebsiteID: "54d8a379-77d5-4c20-b46d-5c9a6c9e39bd",
PerformanceEnabled: true,
},
Gallery: &Gallery{
Path: "photos",
},
Cache: &Valkey{
RefreshTime: time.Minute * 10,
LifeTime: time.Hour * 48,
},
LogJSON: true,
}
}