-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
53 lines (47 loc) · 2.2 KB
/
Copy path.env.example
File metadata and controls
53 lines (47 loc) · 2.2 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
# ---- Postgres (pgvector) ----
POSTGRES_USER=ragdesk
POSTGRES_PASSWORD=ragdesk
POSTGRES_DB=ragdesk
# ---- API (Go core service) ----
PORT=8080
DATABASE_URL=postgres://ragdesk:ragdesk@localhost:5432/ragdesk?sslmode=disable
REDIS_URL=redis://localhost:6379/0
AI_SERVICE_URL=http://localhost:8000
RAGDESK_ENV=development
# Signing secret for JWTs — REQUIRED when RAGDESK_ENV=production.
JWT_SECRET=dev-secret-change-me
# Comma-separated browser origins allowed to call the API.
CORS_ALLOWED_ORIGINS=http://localhost:3000
# ---- AI (Python FastAPI service) ----
# Provider-agnostic LLM. Choose per capability: "ollama" (local, free, default),
# "gemini"/"groq" (free hosted tiers) or "fake" (deterministic — tests/CI).
EMBEDDING_PROVIDER=ollama
CHAT_PROVIDER=ollama
OLLAMA_BASE_URL=http://localhost:11434
# Google Gemini free tier — one key serves both chat and embeddings;
# gemini-embedding-001 is requested at 768 dims (matches the schema, no migration).
# Grab a key at https://aistudio.google.com/apikey, then set both providers to "gemini".
GEMINI_API_KEY=
# Groq free tier — OpenAI-compatible hosted chat (chat only; pair with any
# embeddings provider). Set CHAT_PROVIDER=groq. Key: https://console.groq.com
GROQ_API_KEY=
# ---- Web (Next.js) ----
NEXT_PUBLIC_API_URL=http://localhost:8080
# ---- Internal service auth (Go API <-> AI service) ----
AI_INTERNAL_TOKEN=dev-internal-token
# ---- Billing (Stripe, test mode) ----
# Base URL the API redirects browsers back to after checkout.
WEB_BASE_URL=http://localhost:3000
# Leave these empty to run the $0 dev mode: upgrades are simulated locally with
# no charge. To enable real Stripe test-mode checkout, set all three (use your
# Stripe test keys: sk_test_…, a recurring price_… id, and the whsec_… webhook
# signing secret). When STRIPE_SECRET_KEY is set, STRIPE_WEBHOOK_SECRET is required.
STRIPE_SECRET_KEY=
STRIPE_PRICE_PRO=
STRIPE_WEBHOOK_SECRET=
# ---- Observability (OpenTelemetry, optional) ----
# Empty = tracing off (zero overhead). To trace locally, start the bundled
# Jaeger and point the services at it:
# OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318 docker compose --profile observability up
# then open http://localhost:16686
OTEL_EXPORTER_OTLP_ENDPOINT=