Skip to content
Snippets Groups Projects
Commit 5f82f8fe authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

bugfix: fix auth protocol

parent c9fe3b80
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ const redisPort = REDIS_PORT || REDIS_RATE_LIMITING_DB_EPHEMERAL_PORT_6379_TCP_P
* nb this way to set username and pswd can be risky, but given that site adnimistrator sets the username and pswd via env var
* it should not be a security concern
*/
const userPass = (REDIS_USERNAME || REDIS_PASSWORD) && `${REDIS_USERNAME || ''}${REDIS_USERNAME ? ':' : ''}${REDIS_PASSWORD || ''}@`
const userPass = (REDIS_USERNAME || REDIS_PASSWORD) && `${REDIS_USERNAME || ''}:${REDIS_PASSWORD || ''}@`
const redisURL = redisAddr && `${redisProto}://${userPass || ''}${redisAddr}:${redisPort}`
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment