-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
50 lines (39 loc) · 3.06 KB
/
env.example
File metadata and controls
50 lines (39 loc) · 3.06 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
# ─────────────────────────────────────────────────────────────────────────────
# NutriLens — Environment Variables
# Copy this file to .env and edit as needed.
# .env is gitignored and never committed.
# ─────────────────────────────────────────────────────────────────────────────
# ── PostgreSQL ────────────────────────────────────────────────────────────────
# Used by the FastAPI API and Celery worker.
# Docker Compose default: postgres service named "db"
DATABASE_URL=postgresql+asyncpg://nutrilens:nutrilens_dev@db:5432/nutrilens
# Sync URL used by Alembic migrations
DATABASE_URL_SYNC=postgresql://nutrilens:nutrilens_dev@db:5432/nutrilens
POSTGRES_USER=nutrilens
POSTGRES_PASSWORD=nutrilens_dev
POSTGRES_DB=nutrilens
# ── Redis ─────────────────────────────────────────────────────────────────────
# DB 0: product/job cache
# DB 1: Celery broker (keeps cache and task messages separated)
REDIS_URL=redis://redis:6379/0
CELERY_BROKER_URL=redis://redis:6379/1
CELERY_RESULT_BACKEND=redis://redis:6379/1
# ── Cache ─────────────────────────────────────────────────────────────────────
# How long to cache a product before re-processing (seconds)
# Default: 30 days
CACHE_TTL_SECONDS=2592000
# ── OCR Microservice ──────────────────────────────────────────────────────────
# Internal Docker network URL for the OCR service
OCR_SERVICE_URL=http://ocr:8001
# ── Optional: LLM claim verification (Phase 7) ───────────────────────────────
# Uncomment when Phase 7 (LLM claim intelligence) is implemented
# GROQ_API_KEY=gsk_...
# GROQ_MODEL=llama3-8b-8192
# ── API settings ──────────────────────────────────────────────────────────────
# Set to "production" to disable /docs and tighten CORS
APP_ENV=development
# ── Admin dashboard ───────────────────────────────────────────────────────────
# Set to "true" to make /admin read-only (disable truncate/delete buttons)
# Recommended for public production deployments
ADMIN_READ_ONLY=false
GROQ_API_KEY=