Merge branch 'redisPwd' into 'main'

secure redis

See merge request v3/service/territory!12
This commit is contained in:
Sylvain Briat 2023-03-20 10:52:40 +00:00
commit f81ed33b26
2 changed files with 2 additions and 0 deletions

View File

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