26 lines
462 B
Go
26 lines
462 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",
|
|
WebsiteID: "54d8a379-77d5-4c20-b46d-5c9a6c9e39bd",
|
|
},
|
|
Gallery: &Gallery{
|
|
Path: "gallery",
|
|
},
|
|
Cache: &Valkey{
|
|
RefreshTime: time.Minute * 10,
|
|
LifeTime: time.Hour * 48,
|
|
},
|
|
LogJSON: true,
|
|
}
|
|
}
|