-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (45 loc) · 3.04 KB
/
.env.example
File metadata and controls
55 lines (45 loc) · 3.04 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
# ── Supabase ──────────────────────────────────────────────────
# Get these from your Supabase project → Settings → API
SUPABASE_URL=
SUPABASE_ANON_KEY=
# Service role key — required for document storage (bypasses RLS)
SUPABASE_SERVICE_ROLE_KEY=
# ── Database (Supabase Postgres) ──────────────────────────────
# Supabase → Project Settings → Database → Connection string (URI)
# Use the "Transaction" pooler (port 6543) for serverless/short-lived connections
DATABASE_URL=postgresql://postgres.[ref]:[password]@aws-0-[region].pooler.supabase.com:6543/postgres
# ── AI Provider ─────────────────────────────────────────────
# Choose: gemini | ollama
AI_PROVIDER=gemini
# Gemini (if AI_PROVIDER=gemini)
GEMINI_API_KEY=
GEMINI_MODEL=gemini-2.0-flash
# Ollama (if AI_PROVIDER=ollama)
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=mistral:7b
# ── Rust Binaries ────────────────────────────────────────────
# Paths default to dev build locations — override for production
# CHUNKER_BIN=../../packages/chunker/target/debug/chunker
# EXTRACTOR_BIN=../../packages/extractor/target/debug/extractor
# FIGURE_EXTRACT_BIN=../../packages/extractor/figure_extract.py
# ── Turnstile Keys ────────────────────────────────────────────
CF_TURNSTILE_SITE_KEY=
CF_TURNSTILE_SECRET_KEY=
# ── PostHog (optional) ──────────────────────────────────────
# Web analytics + server-side error tracking (same key for both)
# Get from PostHog → Project Settings → Project API Key
PUBLIC_POSTHOG_API_KEY=
# Set to true to disable PostHog even when the API key is present
DISABLE_POSTHOG=false
# ── Admin ────────────────────────────────────────────────────
# Comma-separated list of emails that can use admin features
# (e.g. bypass daily card limits on the document page)
ADMIN_EMAILS=
# ── Cron ─────────────────────────────────────────────────────
# Set to true to disable the in-process cron timer.
# Useful for running app-only instances that don't process documents.
DISABLE_CRON=false
# ── NOTE ─────────────────────────────────────────────────────
# When adding a new server env var that Astro validates at build time,
# add a placeholder for it in apps/web/Dockerfile (see the ENV block
# in the node-builder stage) so the Docker build doesn't fail.