feat: Implement process worker with bullmq

This commit is contained in:
Faruk AYDIN
2022-03-05 00:15:46 +03:00
committed by Ömer Faruk Aydın
parent b288dc8c35
commit 20e725b590
9 changed files with 194 additions and 3 deletions

View File

@@ -16,6 +16,8 @@ type AppConfig = {
baseUrl?: string;
encryptionKey: string;
serveWebAppSeparately: boolean;
redisHost: string;
redisPort: number;
};
const appConfig: AppConfig = {
@@ -33,6 +35,8 @@ const appConfig: AppConfig = {
encryptionKey: process.env.ENCRYPTION_KEY,
serveWebAppSeparately:
process.env.SERVE_WEB_APP_SEPARATELY === 'true' ? true : false,
redisHost: process.env.REDIS_HOST || '127.0.0.1',
redisPort: parseInt(process.env.REDIS_PORT) || 6379,
};
if (appConfig.serveWebAppSeparately) {