Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
75 lines (63 loc) · 2.5 KB
/
Copy path.env.example
File metadata and controls
75 lines (63 loc) · 2.5 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
65
66
67
68
69
70
71
72
73
74
75
# Copy to `.env` in the repo root and set every required value. Never commit `.env`.
# Quick start: see docs/how-to-run.md — then open http://localhost:8080 (or HTTP_PORT below).
ENVIRONMENT=development
# --- Required for Docker Compose ---
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_DB=
POSTGRES_PORT=5432
# JWT signing (auth + services that validate Bearer tokens). Use a long random secret, e.g. openssl rand -hex 32
JWT_SECRET=
# --- Auth: password reset & email ---
# When true, forgot-password may return dev_reset_token when SMTP is unset (turn OFF in production).
PASSWORD_RESET_RETURN_TOKEN=true
# Base URL for links in emails; match how users reach the app (Compose + NGINX default below).
FRONTEND_PUBLIC_URL=http://localhost:8080
SMTP_HOST=
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=
SMTP_USE_TLS=true
SMTP_USE_SSL=false
# --- Host-only / tooling (optional) ---
# Async URL for Python on the host pointing at Compose Postgres (must match POSTGRES_* above).
DATABASE_URL=
REDIS_URL=redis://localhost:6379/0
REDIS_PORT=6379
# Published ports: host → container :8000 (Python) or :3000 / :80 (edge)
GATEWAY_PORT=8000
# Gateway: per-IP rate limit for POST .../query and .../query/stream (rolling 60s window).
QUERY_RATE_LIMIT_PER_MINUTE=30
# Optional: worker health in GET /v1/diagnostics (Compose: http://worker-service:8000)
WORKER_SERVICE_URL=
AUTH_SERVICE_PORT=8001
INGESTION_SERVICE_PORT=8002
RETRIEVAL_SERVICE_PORT=8003
LLM_SERVICE_PORT=8004
WORKER_SERVICE_PORT=8005
FRONTEND_PORT=3000
HTTP_PORT=8080
# --- Next.js local dev (frontend/.env.local) ---
# Browser calls /api/*; Next rewrites to this gateway URL. Not used by the production Docker image
# (Compose passes GATEWAY_INTERNAL_URL as a build arg: http://gateway-service:8000).
GATEWAY_INTERNAL_URL=http://127.0.0.1:8000
# Optional: scripts or IDE hitting services directly on the host
AUTH_SERVICE_URL=http://127.0.0.1:8001
INGESTION_SERVICE_URL=http://127.0.0.1:8002
RETRIEVAL_SERVICE_URL=http://127.0.0.1:8003
LLM_SERVICE_URL=http://127.0.0.1:8004
# --- OpenAI (worker embeddings, retrieval query embed, default LLM RAG) ---
# Without a key, uploads queue but indexing and query-time AI steps will not succeed.
OPENAI_API_KEY=
# --- LLM provider (llm-service) ---
# openai (default) | ollama
LLM_PROVIDER=openai
OLLAMA_BASE_URL=http://127.0.0.1:11434
OLLAMA_MODEL=llama3.2
# --- Retrieval MMR (retrieval-service) ---
MMR_ENABLED=true
MMR_LAMBDA=0.55
MMR_MAX_CANDIDATES=48
# --- Optional Ollama container (docker compose --profile ollama) ---
OLLAMA_HOST_PORT=11434