-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
60 lines (42 loc) · 1.68 KB
/
.env.example
File metadata and controls
60 lines (42 loc) · 1.68 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# OCR Application Environment Variables
# Copy this file to .env.local and configure as needed
# ============================================
# OCR Service Configuration
# ============================================
# OCR processing timeout in milliseconds (default: 600000 = 10 minutes)
# OCR_TIMEOUT=600000
# Upload directory for incoming files (default: uploads)
# UPLOAD_DIR=uploads
# Processed files directory (default: processed)
# PROCESSED_DIR=processed
# Maximum file size in bytes (default: 52428800 = 50MB)
# MAX_FILE_SIZE=52428800
# Enable confidence tracking for OCR results (default: false)
# ENABLE_CONFIDENCE_TRACKING=true
# Minimum confidence score for OCR (default: 70)
# MIN_CONFIDENCE=70
# Enable debug logging (default: false)
# DEBUG=true
# ============================================
# Authentication Configuration (Optional)
# ============================================
# Require authentication for all routes (default: false)
# REQUIRE_AUTHENTICATION=true
# JWT secret for session tokens (required if authentication is enabled)
# JWT_SECRET=your-secret-key-here-change-in-production
# Admin-only mode - blocks all user registrations (default: false)
# ADMIN_ONLY_MODE=false
# ============================================
# Security & Rate Limiting
# ============================================
# Rate limit window in minutes (default: 15)
# RATE_LIMIT_WINDOW=15
# Maximum requests per window (default: 100)
# RATE_LIMIT_MAX_REQUESTS=100
# CORS origin (default: *)
# CORS_ORIGIN=*
# ============================================
# Next.js Configuration
# ============================================
# Node environment (development, production, test)
NODE_ENV=development