mirror of
https://gitlab.com/mobicoop/v3/service/territory.git
synced 2026-02-01 21:30:45 +00:00
secure redis
This commit is contained in:
@@ -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'),
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -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'),
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user