feat: configure Redis connection and update server port
All checks were successful
Deploy NestJS API / build-and-push-deploy (push) Successful in 1m56s

This commit is contained in:
2026-01-02 19:23:49 -05:00
parent d400a3febb
commit 699a9191e2
3 changed files with 11 additions and 3 deletions

View File

@@ -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();

View File

@@ -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),
});
},
};