mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
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:
parent
46cf3e3a91
commit
a859943871
4 changed files with 7 additions and 2 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue