Add support for redis authentication (#420)

* Add support for redis authentication (Update redpool dependency)
 - Add configuration option `redisPassword`

* Reference `redisPassword` in nitter.conf
This commit is contained in:
Vítor
2021-08-06 19:53:16 -03:00
committed by GitHub
parent 6c5cb01b29
commit fd384ff33e
5 changed files with 5 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ proc getConfig*(path: string): (Config, parseCfg.Config) =
redisPort: cfg.get("Cache", "redisPort", 6379),
redisConns: cfg.get("Cache", "redisConnections", 20),
redisMaxConns: cfg.get("Cache", "redisMaxConnections", 30),
redisPassword: cfg.get("Cache", "redisPassword", ""),
replaceYouTube: cfg.get("Preferences", "replaceYouTube", "piped.kavin.rocks")
)