refactor(server): redis config (#13538)

* refactor(server): redis config

* refactor: cache parsed env data

* chore: add database and redis tests
This commit is contained in:
Jason Rasmussen
2024-10-17 10:50:54 -04:00
committed by GitHub
parent 79acbc1d7b
commit 3f663106e8
8 changed files with 318 additions and 173 deletions

View File

@@ -1,3 +1,6 @@
import { RegisterQueueOptions } from '@nestjs/bullmq';
import { QueueOptions } from 'bullmq';
import { RedisOptions } from 'ioredis';
import { ImmichEnvironment, ImmichWorker, LogLevel } from 'src/enum';
import { VectorExtension } from 'src/interfaces/database.interface';
@@ -57,6 +60,13 @@ export interface EnvData {
};
};
redis: RedisOptions;
bull: {
config: QueueOptions;
queues: RegisterQueueOptions[];
};
storage: {
ignoreMountCheckErrors: boolean;
};