secure redis

This commit is contained in:
sbriat 2023-03-20 11:49:30 +01:00
parent 2f501b796e
commit ab86e3ff85
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import { SetConfigurationUseCase } from './domain/usecases/set-configuration.use
config: { config: {
host: configService.get<string>('REDIS_HOST'), host: configService.get<string>('REDIS_HOST'),
port: configService.get<number>('REDIS_PORT'), port: configService.get<number>('REDIS_PORT'),
password: configService.get<string>('REDIS_PASSWORD'),
}, },
}), }),
}), }),

View File

@ -41,6 +41,7 @@ import { TerritoryProfile } from './mappers/territory.profile';
store: await redisStore({ store: await redisStore({
host: configService.get<string>('REDIS_HOST'), host: configService.get<string>('REDIS_HOST'),
port: configService.get<number>('REDIS_PORT'), port: configService.get<number>('REDIS_PORT'),
password: configService.get<string>('REDIS_PASSWORD'),
ttl: configService.get<number>('CACHE_TTL'), ttl: configService.get<number>('CACHE_TTL'),
}), }),
}), }),