feat: Add http basic auth for BullMQ dashboard

This commit is contained in:
Faruk AYDIN
2022-10-30 15:10:33 +01:00
parent 53bbde4314
commit cd5502fdde
7 changed files with 62 additions and 25 deletions

View File

@@ -22,6 +22,8 @@ type AppConfig = {
redisHost: string;
redisPort: number;
enableBullMQDashboard: boolean;
bullMQDashboardUsername: string;
bullMQDashboardPassword: string;
telemetryEnabled: boolean;
};
@@ -61,6 +63,8 @@ const appConfig: AppConfig = {
redisPort: parseInt(process.env.REDIS_PORT || '6379'),
enableBullMQDashboard:
process.env.ENABLE_BULLMQ_DASHBOARD === 'true' ? true : false,
bullMQDashboardUsername: process.env.BULLMQ_DASHBOARD_USERNAME,
bullMQDashboardPassword: process.env.BULLMQ_DASHBOARD_PASSWORD,
baseUrl,
webAppUrl,
telemetryEnabled: process.env.TELEMETRY_ENABLED === 'false' ? false : true,