diff options
Diffstat (limited to 'input.go')
-rw-r--r-- | input.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 } |