This commit is contained in:
1 parent
cebe3a812d
commit
83a239f580
3 files changed
+14
-8
No files matched your search
@@ -10,9 +10,10 @@ func Default() Cfg {
|
||||
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",
|
||||
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",
|
||||
|
||||
@@ -52,10 +52,10 @@ type Gallery struct {
|
||||
}
|
||||
|
||||
type Umami struct {
|
||||
ScriptSrc string `env:"SCRIPT_SRC"`
|
||||
RecorderSrc string `env:"RECORDER_SRC"`
|
||||
|
||||
WebsiteID string `env:"WEBSITE_ID"`
|
||||
ScriptSrc string `env:"SCRIPT_SRC"`
|
||||
RecorderSrc string `env:"RECORDER_SRC"`
|
||||
WebsiteID string `env:"WEBSITE_ID"`
|
||||
PerformanceEnabled bool `env:"PERFORMANCE_ENABLED`
|
||||
}
|
||||
|
||||
func Read(ctx context.Context) (cfg Cfg, err error) {
|
||||
|
||||
Reference in new issue
Block a user