import path from 'path'

export const config = {
  DOWNLOAD_LINK_TTL_HOURS: 24,
  WORKER_CONCURRENCY: 3,
  WORKER_POLL_INTERVAL_MS: 10_000,
  STORAGE_PATH: process.env.STORAGE_PATH ?? '',
  RATE_LIMIT_MAX: 5,
  RATE_LIMIT_WINDOW_MS: 3_600_000,
  BIN_DIR: process.env.BIN_DIR ?? path.join(process.cwd(), 'bin'),
} as const
