Expand configuration (#368)

* Allow configuring httpMaxConns

default: 100

* Allow setting NITTER_CONF_FILE path env var

Co-authored-by: 3nprob <3nprob@3nprob>
This commit is contained in:
3nprob
2021-06-23 21:17:16 +00:00
committed by GitHub
parent 46cf3e3a91
commit a859943871
4 changed files with 7 additions and 2 deletions

View File

@@ -16,6 +16,8 @@ proc getConfig*(path: string): (Config, parseCfg.Config) =
address: cfg.get("Server", "address", "0.0.0.0"),
port: cfg.get("Server", "port", 8080),
useHttps: cfg.get("Server", "https", true),
httpMaxConns: cfg.get("Server", "httpMaxConnections", 100),
title: cfg.get("Server", "title", "Nitter"),
hostname: cfg.get("Server", "hostname", "nitter.net"),
staticDir: cfg.get("Server", "staticDir", "./public"),