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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user