mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-11 06:42:39 +00:00
switch to redis
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
import { registerAs } from '@nestjs/config';
|
||||
|
||||
export default registerAs('database', () => ({
|
||||
url:
|
||||
process.env.DATABASE_URL ??
|
||||
'postgresql://mobicoop:mobicoop@v3-db:5432/mobicoop?schema=configuration',
|
||||
}));
|
||||
7
src/config/redis.config.ts
Normal file
7
src/config/redis.config.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { registerAs } from '@nestjs/config';
|
||||
|
||||
export default registerAs('redis', () => ({
|
||||
host: process.env.REDIS_HOST ?? 'v3-redis',
|
||||
port: process.env.PORT ? parseInt(process.env.PORT, 10) : 6379,
|
||||
password: process.env.REDIS_PASSWORD ?? 'redis',
|
||||
}));
|
||||
Reference in New Issue
Block a user