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:
@@ -20,6 +20,6 @@ async function bootstrap() {
|
||||
.build();
|
||||
const document = SwaggerModule.createDocument(app, options);
|
||||
SwaggerModule.setup("docs", app, document);
|
||||
await app.listen(8065);
|
||||
await app.listen(8067);
|
||||
}
|
||||
bootstrap();
|
||||
|
||||
@@ -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