switch to redis

This commit is contained in:
sbriat
2023-10-24 15:47:11 +02:00
parent f960299565
commit 3505d2a520
51 changed files with 470 additions and 1361 deletions

View File

@@ -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',
}));

View 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',
}));