feat(server): make environment variables a first class citizen

This commit is contained in:
perf3ct
2025-06-12 23:22:22 +00:00
parent eb70964254
commit 0bb84a9b98
4 changed files with 581 additions and 25 deletions
+18 -6
View File
@@ -1,16 +1,28 @@
# Core Configuration
DATABASE_URL=postgresql://readur:readur_password@localhost:5432/readur
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
SERVER_ADDRESS=0.0.0.0:8000
UPLOAD_PATH=./uploads
# Watch folder configuration
# File Storage & Upload
UPLOAD_PATH=./uploads
ALLOWED_FILE_TYPES=pdf,png,jpg,jpeg,tiff,bmp,gif,txt,rtf,doc,docx
# Watch Folder Configuration
WATCH_FOLDER=./watch
WATCH_INTERVAL_SECONDS=30
FILE_STABILITY_CHECK_MS=500
MAX_FILE_AGE_HOURS=168
# FORCE_POLLING_WATCH=1
# File type restrictions
ALLOWED_FILE_TYPES=pdf,txt,doc,docx,png,jpg,jpeg,tiff,bmp
# OCR & Processing Settings
OCR_LANGUAGE=eng
CONCURRENT_OCR_JOBS=4
OCR_TIMEOUT_SECONDS=300
MAX_FILE_SIZE_MB=50
# Force polling mode for testing network filesystems (optional)
# FORCE_POLLING_WATCH=1
# Performance Settings
MEMORY_LIMIT_MB=512
CPU_PRIORITY=normal
# Optional: Additional OCR languages (install additional tesseract language packs)
# OCR_LANGUAGE=eng+fra+deu+spa # English + French + German + Spanish