File tree Expand file tree Collapse file tree 5 files changed +17
-15
lines changed
Expand file tree Collapse file tree 5 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ MATCHING_SERVICE_NAME=match-express
1717MATCHING_EXPRESS_PORT = 9004
1818MATCHING_DB_USERNAME = " peerprep-match-express"
1919MATCHING_DB_PASSWORD = " password"
20- MATCHING_DB_HOST_PORT = 6379
20+ MATCHING_DB_HOST_PORT = 6378
2121MATCHING_DB_HOST_MGMT_PORT = 3001
2222
2323FRONTEND_SERVICE_NAME = frontend
Original file line number Diff line number Diff line change 33
44EXPRESS_PORT=9004
55
6- # MATCHING_DB_HOSTNAME="match-db"
7- MATCHING_DB_PORT=6379
6+ MATCHING_DB_HOSTNAME="match-db"
7+ MATCHING_DB_PORT=6378
88
9- # MATCHING_DB_USERNAME="peerprep-match-express"
10- # MATCHING_DB_PASSWORD="G7jBgyz9wGAFQ5La"
11- # REDIS_ARGS="--requirepass G7jBgyz9wGAFQ5La --user ${MATCHING_DB_USERNAME} on >G7jBgyz9wGAFQ5La ~* allcommands --user default off nopass nocommands"
9+ MATCHING_DB_USERNAME="peerprep-match-express"
10+ MATCHING_DB_PASSWORD="G7jBgyz9wGAFQ5La"
11+ REDIS_ARGS="--requirepass G7jBgyz9wGAFQ5La --user ${MATCHING_DB_USERNAME} on >G7jBgyz9wGAFQ5La ~* allcommands --user default off nopass nocommands"
1212
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ PEERPREP_USER_HOST=http://host.docker.internal:9001
99PEERPREP_QUESTION_HOST=http://host.docker.internal:9002
1010PEERPREP_COLLAB_HOST=http://host.docker.internal:9003
1111
12- # MATCHING_DB_USERNAME=peerprep-match-express
13- # MATCHING_DB_PASSWORD=G7jBgyz9wGAFQ5La
12+ MATCHING_DB_USERNAME=peerprep-match-express
13+ MATCHING_DB_PASSWORD=G7jBgyz9wGAFQ5La
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ PEERPREP_UI_HOST=http://localhost:5173
33EXPRESS_PORT = 9004
44
55MATCHING_DB_HOSTNAME = localhost
6- MATCHING_DB_PORT = 6379
6+ MATCHING_DB_PORT = 6378
77
88
99PEERPREP_USER_HOST = " http://localhost:9001"
@@ -12,6 +12,6 @@ PEERPREP_COLLAB_HOST="http://localhost:9003"
1212
1313
1414
15- # MATCHING_DB_USERNAME="peerprep-match-express"
16- # MATCHING_DB_PASSWORD="G7jBgyz9wGAFQ5La"
17- # REDIS_ARGS="--requirepass G7jBgyz9wGAFQ5La --user ${MATCHING_DB_USERNAME} on >G7jBgyz9wGAFQ5La ~* allcommands --user default off nopass nocommands"
15+ MATCHING_DB_USERNAME = " peerprep-match-express"
16+ MATCHING_DB_PASSWORD = " G7jBgyz9wGAFQ5La"
17+ REDIS_ARGS = " --requirepass G7jBgyz9wGAFQ5La --user ${ MATCHING_DB_USERNAME } on >G7jBgyz9wGAFQ5La ~* allcommands --user default off nopass nocommands"
Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ export const PEERPREP_QUESTION_HOST = process.env.PEERPREP_QUESTION_HOST;
99export const PEERPREP_COLLAB_HOST = process . env . PEERPREP_COLLAB_HOST ;
1010
1111const DB_HOSTNAME = process . env . MATCHING_DB_HOSTNAME ;
12- const DB_PORT = Number . parseInt ( process . env . MATCHING_DB_PORT ?? '6379' ) ;
13- // export const DB_URL = `redis://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:${DB_PORT}`;
14- export const DB_URL = `redis://${ DB_HOSTNAME } :${ DB_PORT } ` ;
12+ const DB_PORT = Number . parseInt ( process . env . MATCHING_DB_PORT ?? '6378' ) ;
13+ const DB_USERNAME = process . env . MATCHING_DB_USERNAME ;
14+ const DB_PASSWORD = process . env . MATCHING_DB_PASSWORD ;
15+ export const DB_URL = `redis://${ DB_USERNAME } :${ DB_PASSWORD } @${ DB_HOSTNAME } :${ DB_PORT } ` ;
16+ // export const DB_URL = `redis://${DB_HOSTNAME}:${DB_PORT}`;
1517
1618export const NODE_ENV = process . env . NODE_ENV ;
1719
You can’t perform that action at this time.
0 commit comments