feat: configure Redis connection and update server port
All checks were successful
Deploy NestJS API / build-and-push-deploy (push) Successful in 1m56s
All checks were successful
Deploy NestJS API / build-and-push-deploy (push) Successful in 1m56s
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import { Provider } from '@nestjs/common';
|
||||
import Redis = require('ioredis');
|
||||
import 'dotenv/config';
|
||||
|
||||
|
||||
|
||||
export const redisProvider: Provider = {
|
||||
provide: 'REDIS_CLIENT',
|
||||
useFactory: () => {
|
||||
return new Redis({
|
||||
host: '172.35.0.217',
|
||||
port: 6379,
|
||||
host: process.env.REDIS_HOST,
|
||||
port: parseInt(process.env.REDIS_PORT),
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user