homolog #1

Merged
luis merged 22 commits from homolog into main 2026-01-12 14:55:39 -05:00
3 changed files with 11 additions and 3 deletions
Showing only changes of commit 699a9191e2 - Show all commits

5
.env
View File

@@ -1,6 +1,11 @@
ORACLE_CLIENT_PATH='/usr/lib/oracle/21/client64/lib' ORACLE_CLIENT_PATH='/usr/lib/oracle/21/client64/lib'
###REDIS
REDIS_HOST='172.35.0.217'
REDIS_PORT='6379'
####ORACLE ####ORACLE
PORT='8065' PORT='8065'
DB_USERNAME='simplifique' DB_USERNAME='simplifique'

View File

@@ -20,6 +20,6 @@ async function bootstrap() {
.build(); .build();
const document = SwaggerModule.createDocument(app, options); const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup("docs", app, document); SwaggerModule.setup("docs", app, document);
await app.listen(8065); await app.listen(8067);
} }
bootstrap(); bootstrap();

View File

@@ -1,12 +1,15 @@
import { Provider } from '@nestjs/common'; import { Provider } from '@nestjs/common';
import Redis = require('ioredis'); import Redis = require('ioredis');
import 'dotenv/config';
export const redisProvider: Provider = { export const redisProvider: Provider = {
provide: 'REDIS_CLIENT', provide: 'REDIS_CLIENT',
useFactory: () => { useFactory: () => {
return new Redis({ return new Redis({
host: '172.35.0.217', host: process.env.REDIS_HOST,
port: 6379, port: parseInt(process.env.REDIS_PORT),
}); });
}, },
}; };