-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
64 lines (54 loc) · 3.41 KB
/
Copy path.env.example
File metadata and controls
64 lines (54 loc) · 3.41 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
61
62
63
64
# ============================================================
# LongParser Environment Configuration
# Copy this file to .env and fill in your values.
# NEVER commit .env to version control.
# ============================================================
# ── Database ─────────────────────────────────────────────────
# Local dev (no auth):
LONGPARSER_MONGO_URL=mongodb://localhost:27017
# Docker Compose (auth handled by docker-compose.yml override):
# No need to change — docker-compose sets the authenticated URL automatically.
# Production (with auth):
# LONGPARSER_MONGO_URL=mongodb://USER:PASSWORD@host:27017/longparser?authSource=admin
LONGPARSER_DB_NAME=longparser
# ── Job Queue (Redis / ARQ) ───────────────────────────────────
# Local dev (no auth):
LONGPARSER_REDIS_URL=redis://localhost:6379
# Production (with auth):
# LONGPARSER_REDIS_URL=redis://:PASSWORD@host:6379
# ── Docker Auth Credentials (used by docker-compose.yml) ──────
# Change these before deploying. Defaults are for local dev only.
MONGO_USER=longparser
MONGO_PASS=longparser
REDIS_PASS=longparser
# ── File Storage ──────────────────────────────────────────────
LONGPARSER_UPLOAD_DIR=./uploads
# ── LLM Provider ─────────────────────────────────────────────
# One of: openai | gemini | groq | openrouter
LONGPARSER_LLM_PROVIDER=openai
LONGPARSER_LLM_MODEL=gpt-5.3
# ── API Keys ──────────────────────────────────────────────────
OPENAI_API_KEY=sk-...
GOOGLE_API_KEY= # Required for gemini provider
GROQ_API_KEY= # Required for groq provider
OPENROUTER_API_KEY= # Required for openrouter provider
# ── Embedding ─────────────────────────────────────────────────
# Provider: huggingface | openai
LONGPARSER_EMBED_PROVIDER=huggingface
LONGPARSER_EMBED_MODEL=BAAI/bge-base-en-v1.5
# ── Vector Store ──────────────────────────────────────────────
# One of: chroma | faiss | qdrant
LONGPARSER_VECTOR_DB=chroma
QDRANT_URL=http://localhost:6333 # Required only for qdrant
QDRANT_API_KEY= # Required only for Qdrant Cloud
# ── OCR & Extraction ─────────────────────────────────────────
# OCR backend: easyocr | tesseract | rapidocr
LONGPARSER_OCR_BACKEND=easyocr
LONGPARSER_OCR_USE_GPU=false
# ── Security (added by audit) ────────────────────────────────
# CORS allowed origins (comma-separated). Default: * (all origins)
# LONGPARSER_CORS_ORIGINS=https://app.example.com,https://admin.example.com
# Rate limit: max requests per minute per tenant. Default: 60
# LONGPARSER_RATE_LIMIT=60
# Admin API keys (comma-separated). If empty, all users are admin.
# LONGPARSER_ADMIN_KEYS=key1,key2