diff options
Diffstat (limited to 'internal/config.go')
| -rw-r--r-- | internal/config.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/config.go b/internal/config.go index 740b19b..2ade802 100644 --- a/internal/config.go +++ b/internal/config.go @@ -14,6 +14,8 @@ type config struct { SMTPServer string `json:"SMTPServer,omitempty"` SMTPDisable bool `json:"SMTPDisable,omitempty"` // TODO: Document this option 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 CheckTimeoutS int CheckConcurrency int StaleThreshold int `json:"StaleThreshold,omitempty"` @@ -58,6 +60,11 @@ func newConfig(configFile string) (config, error) { conf.StaleThreshold = 3600 // Default to 1 hour } + if !conf.HTMLDisable && conf.HTMLStatusFile == "" { + conf.HTMLStatusFile = "/var/www/htdocs/buetow.org/self/gogios/index.html" + log.Println("Set HTMLStatusFile to " + conf.HTMLStatusFile) + } + return conf, nil } |
