Skip to content

Commit

Permalink
fix: ipfs-redis-service (#360)
Browse files Browse the repository at this point in the history
* fix/ipfs-redis-service: tls connection to redis

* fix/ipfs-redis-service: tls connection to redis
  • Loading branch information
BEdev24 authored Sep 17, 2024
1 parent f222be0 commit 5277d15
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ JWT_REFRESH_TOKEN_EXPIRES_IN=7d
REDIS_HOST=cache
REDIS_PORT=6379
REDIS_PASSWORD=password
REDIS_TLS=false

# AWS SES
AWS_ACCESS_KEY_ID=your_access_key_id
Expand Down
1 change: 1 addition & 0 deletions backend/src/redis/client/redis-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const redisClientFactory: FactoryProvider<Redis> = {
host: configService.getOrThrow('REDIS_HOST'),
port: configService.getOrThrow('REDIS_PORT'),
password: configService.getOrThrow('REDIS_PASSWORD'),
...(configService.get('REDIS_TLS') === 'false' ? {} : { tls: {} }),
});

redisInstance.on('error', (e) => {
Expand Down
1 change: 1 addition & 0 deletions ipfs-service/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ IPNS_CONSTITUTION_KEY_NAME='some-key-name'
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=password
REDIS_TLS=false

## DHT QUEUE ##
# Attempts
Expand Down
1 change: 1 addition & 0 deletions ipfs-service/src/bullmq/bullmq.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ExpressAdapter } from "@bull-board/express";
host: configService.getOrThrow("REDIS_HOST"),
port: configService.getOrThrow("REDIS_PORT"),
password: configService.getOrThrow("REDIS_PASSWORD"),
...(configService.get('REDIS_TLS') === 'false' ? {} : { tls: {} }),
},
}),
inject: [ConfigService],
Expand Down
1 change: 1 addition & 0 deletions worker-service/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ DB_SYNC_POSTGRES_PASSWORD=password
REDIS_HOST=cache
REDIS_PORT=6379
REDIS_PASSWORD=password
REDIS_TLS=false

# PAGINATION
HOT_ADDRESSES_PER_PAGE=10
Expand Down
1 change: 1 addition & 0 deletions worker-service/src/bullmq/bullmq.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { ExpressAdapter } from '@bull-board/express';
host: configService.getOrThrow('REDIS_HOST'),
port: configService.getOrThrow('REDIS_PORT'),
password: configService.getOrThrow('REDIS_PASSWORD'),
...(configService.get('REDIS_TLS') === 'false' ? {} : { tls: {} }),
},
}),
inject: [ConfigService],
Expand Down

0 comments on commit 5277d15

Please sign in to comment.