-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
46 lines (39 loc) · 1.57 KB
/
Copy path.env.example
File metadata and controls
46 lines (39 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Database
DATABASE_URL=postgresql://dxd:dxd@localhost:5432/scraper
# Redis
REDIS_URL=redis://localhost:6379
# Worker recovery
# BullMQ lock duration. Defaults to 10 minutes.
# WORKER_LOCK_DURATION_MS=600000
# Grace period before orphaned active crawls are considered stale. Defaults to 10 minutes.
# ORPHAN_CRAWL_GRACE_MS=600000
# Reconcile interval for orphaned active crawls (in milliseconds). Defaults to 2 minutes.
# This determines how frequently the system checks for orphaned crawls.
# Should be less than ORPHAN_CRAWL_GRACE_MS to detect stale crawls before they expire.
# Works in conjunction with WORKER_LOCK_DURATION_MS to manage worker recovery timing.
# ORPHAN_CRAWL_RECONCILE_INTERVAL_MS=120000
# Temporary escape hatch to restore the old skip-lock-renewal behavior.
# Accepts true/1/yes/on to enable.
# WORKER_SKIP_LOCK_RENEWAL=false
# Storage
STORAGE_TYPE=auto
LOCAL_STORAGE_PATH=./data
# If R2/S3 credentials are present, auto mode will use them.
# Set FORCE_LOCAL_STORAGE=true to force filesystem storage.
# S3/R2 (if STORAGE_TYPE=s3)
# S3_ENDPOINT=https://xxx.r2.cloudflarestorage.com
# S3_ACCESS_KEY_ID=xxx
# S3_SECRET_ACCESS_KEY=xxx
# S3_BUCKET=dxd-archives
# S3_REGION=auto
# API
API_PORT=3001
# Auth (GitHub OAuth via Auth.js)
AUTH_SECRET=replace-with-long-random-string
GITHUB_CLIENT_ID=your-github-oauth-app-client-id
GITHUB_CLIENT_SECRET=your-github-oauth-app-client-secret
FRONTEND_URL=http://localhost:5173
# Optional extra CORS origins (comma-separated), e.g. https://web-production-xxxx.up.railway.app
# CORS_ALLOWED_ORIGINS=
# Web
VITE_API_URL=http://localhost:3001