feat: add configurable ebookJobTimeoutMs to config

This commit is contained in:
2026-07-31 13:23:30 +02:00
parent b95e371989
commit f796c0bd97
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ export function loadConfig() {
retentionHours: Number(process.env.RETENTION_HOURS ?? 1),
workerPollIntervalMs: Number(process.env.WORKER_POLL_INTERVAL_MS ?? 1500),
workerConcurrency: Number(process.env.WORKER_CONCURRENCY ?? 3),
ebookJobTimeoutMs: Number(process.env.EBOOK_JOB_TIMEOUT_MS ?? 180000),
rateLimitMaxJobs: Number(process.env.RATE_LIMIT_MAX_JOBS ?? 20),
rateLimitWindowMinutes: Number(process.env.RATE_LIMIT_WINDOW_MINUTES ?? 10),
};