File tree 3 files changed +2
-5
lines changed
3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ services:
22
22
networks :
23
23
- default
24
24
environment :
25
- - REDIS_URL=redis://redis:6379
26
- - REDIS_PASSWORD=ChangeMe
25
+ - REDIS_URL=redis://:ChangeMe@redis:6379
27
26
28
27
volumes :
29
28
redis-data :
Original file line number Diff line number Diff line change 1
1
export const PORT = process . env . PORT || 8080 ;
2
2
export const REDIS_URL = process . env . REDIS_URL || 'redis://127.0.0.1:6379' ;
3
- export const REDIS_PASSWORD = process . env . REDIS_PASSWORD ;
Original file line number Diff line number Diff line change 1
1
import { createClient , RedisClientType } from 'redis' ;
2
2
import axios from 'axios' ;
3
- import { PORT , REDIS_URL , REDIS_PASSWORD } from './config' ;
3
+ import { PORT , REDIS_URL } from './config' ;
4
4
import { createServer } from './server' ;
5
5
6
6
const redisClient : RedisClientType = createClient ( {
7
7
url : REDIS_URL ,
8
- password : REDIS_PASSWORD ,
9
8
socket : {
10
9
tls : ( REDIS_URL . match ( / r e d i s s : / ) != null ) ,
11
10
rejectUnauthorized : false ,
You can’t perform that action at this time.
0 commit comments