mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Add enableRSS setting in config file
Useful for instance owners who want to disable the RSS endpoint for reasons such as abuse and not enough server resources to handle heavy network traffic through that endpoint. Resolves #437
This commit is contained in:
parent
5caf77481f
commit
2edf54d5b3
5 changed files with 11 additions and 7 deletions
|
|
@ -25,6 +25,7 @@ proc getConfig*(path: string): (Config, parseCfg.Config) =
|
|||
hmacKey: cfg.get("Config", "hmacKey", "secretkey"),
|
||||
base64Media: cfg.get("Config", "base64Media", false),
|
||||
minTokens: cfg.get("Config", "tokenCount", 10),
|
||||
enableRSS: cfg.get("Config", "enableRSS", true),
|
||||
|
||||
listCacheTime: cfg.get("Cache", "listMinutes", 120),
|
||||
rssCacheTime: cfg.get("Cache", "rssMinutes", 10),
|
||||
|
|
|
|||
Loading…
Reference in a new issue