aboutsummaryrefslogtreecommitdiff
path: root/input.go
diff options
context:
space:
mode:
Diffstat (limited to 'input.go')
-rw-r--r--input.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/input.go b/input.go
index 26e65f5..6b3d0e8 100644
--- a/input.go
+++ b/input.go
@@ -39,6 +39,9 @@ type Config struct {
// default to ["index.gmi"]
IndexFiles []string `toml:"index_files"`
+ // default to 5
+ ExecTimeout int64 `toml:"exec_timeout"`
+
TLSCert string `toml:"tls_certificate"`
TLSKey string `toml:"tls_key"`
}
@@ -64,5 +67,9 @@ func getConfig(path string) (Config, error) {
cfg.IndexFiles = []string{"index.gmi"}
}
+ if cfg.ExecTimeout == 0 {
+ cfg.ExecTimeout = 5
+ }
+
return cfg, nil
}