Compare commits

..
Author SHA1 Message Date
Marcos Rodrigues Silva fa4267f54a Merge pull request #369 from dadosfera/hotfix/oracle
UPDATE: oracle vpn
2025-08-29 10:16:45 -03:00
3 changed files with 5 additions and 14 deletions
-1
View File
@@ -13,4 +13,3 @@ hostname: maestro.stg.dadosfera.ai
replicaCount: 1
affinity: null
-1
View File
@@ -114,7 +114,6 @@ export class AuthController {
return res.send(data);
} catch (error) {
this.logger.error('/auth - SignIn - ERROR', error);
throw error;
}
}
+5 -12
View File
@@ -5,25 +5,18 @@ import { redisStore } from 'cache-manager-ioredis-yet';
@Module({
imports: [
CacheModule.registerAsync({
useFactory: async () => {
const baseRedisConfig = {
useFactory: async () => ({
store: await redisStore({
ttl: 5 * 1000 * 60, // 5 minute
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT && Number(process.env.REDIS_PORT),
db: process.env.REDIS_DATABASE && Number(process.env.REDIS_DATABASE),
keyPrefix: 'maestro:sso',
}
if (process.env.ENV !== 'local') {
baseRedisConfig['tls'] = {
tls: {
servername: process.env.REDIS_HOST,
}
}
return {
store: await redisStore(baseRedisConfig),
}
},
}),
}),
}),
],
providers: [CacheService],