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:
5
.env
5
.env
@@ -1,6 +1,11 @@
|
||||
ORACLE_CLIENT_PATH='/usr/lib/oracle/21/client64/lib'
|
||||
|
||||
|
||||
###REDIS
|
||||
REDIS_HOST='172.35.0.217'
|
||||
REDIS_PORT='6379'
|
||||
|
||||
|
||||
####ORACLE
|
||||
PORT='8065'
|
||||
DB_USERNAME='simplifique'
|
||||
|
||||
@@ -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