summaryrefslogtreecommitdiff
path: root/internal/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config.go')
-rw-r--r--internal/config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/config.go b/internal/config.go
index 25a9ddd..5d172d6 100644
--- a/internal/config.go
+++ b/internal/config.go
@@ -16,6 +16,7 @@ type config struct {
StateDir string `json:"StateDir,omitempty"`
HTMLStatusFile string `json:"HTMLStatusFile,omitempty"` // Path to HTML status file
HTMLDisable bool `json:"HTMLDisable,omitempty"` // Disable HTML status page generation
+ StatusPageURL string `json:"StatusPageURL,omitempty"` // URL to the HTML status page for email notifications
CheckTimeoutS int
CheckConcurrency int
StaleThreshold int `json:"StaleThreshold,omitempty"`
@@ -71,6 +72,12 @@ func newConfig(configFile string) (config, error) {
log.Println("Set HTMLStatusFile to " + conf.HTMLStatusFile)
}
+ // Default URL for the status page link in email notifications
+ if conf.StatusPageURL == "" {
+ conf.StatusPageURL = "https://gogios.buetow.org"
+ log.Println("Set StatusPageURL to " + conf.StatusPageURL)
+ }
+
return conf, nil
}