fix(redis): use eredis_secret to avoid password leaking
This commit is contained in:
parent
2c458b62f5
commit
fc35c74eab
@ -147,7 +147,7 @@ on_start(
|
|||||||
[
|
[
|
||||||
{pool_size, PoolSize},
|
{pool_size, PoolSize},
|
||||||
{username, maps:get(username, Config, undefined)},
|
{username, maps:get(username, Config, undefined)},
|
||||||
{password, maps:get(password, Config, "")},
|
{password, eredis_secret:wrap(maps:get(password, Config, ""))},
|
||||||
{auto_reconnect, ?AUTO_RECONNECT_INTERVAL}
|
{auto_reconnect, ?AUTO_RECONNECT_INTERVAL}
|
||||||
] ++ Database ++ Servers,
|
] ++ Database ++ Servers,
|
||||||
Options =
|
Options =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user