mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
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:
parent
6c5cb01b29
commit
fd384ff33e
5 changed files with 5 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ proc migrate*(key, match: string) {.async.} =
|
|||
proc initRedisPool*(cfg: Config) {.async.} =
|
||||
try:
|
||||
pool = await newRedisPool(cfg.redisConns, maxConns=cfg.redisMaxConns,
|
||||
host=cfg.redisHost, port=cfg.redisPort)
|
||||
host=cfg.redisHost, port=cfg.redisPort, password=cfg.redisPassword)
|
||||
|
||||
await migrate("snappyRss", "rss:*")
|
||||
await migrate("oldFrosty", "*")
|
||||
|
|
|
|||
Loading…
Reference in a new issue