-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
89 lines (75 loc) · 4.79 KB
/
Copy path.env.example
File metadata and controls
89 lines (75 loc) · 4.79 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# ============================================================
# Maghreb Insights Platform — Environment Variables
# Copy to .env and fill in values. NEVER commit .env.
# ============================================================
# ── App ────────────────────────────────────────────────────
BRAND_NAME="Maghreb Insights"
BRAND_DOMAIN="maghrebinsights.co"
ENVIRONMENT="development" # development | staging | production
SECRET_KEY="" # random 64-char hex: openssl rand -hex 32
# ── Database (PostgreSQL) ──────────────────────────────────
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/maghreb"
# Production: set to Supabase connection string
# ── Redis (job queue) ─────────────────────────────────────
REDIS_URL="redis://localhost:6379/0"
# ── Supabase (auth + prod DB) ─────────────────────────────
SUPABASE_URL="https://vbbmouprfrvsvfkumcur.supabase.co"
SUPABASE_ANON_KEY="" # service_role key — server-only
SUPABASE_SERVICE_ROLE_KEY="" # from Supabase → Settings → API → service_role
NEXT_PUBLIC_SUPABASE_URL="https://vbbmouprfrvsvfkumcur.supabase.co"
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY="sb_publishable_ITe6xm3JG62WiDrHHf_6nQ_dOWWys6S"
NEXT_PUBLIC_SUPABASE_ANON_KEY="sb_publishable_ITe6xm3JG62WiDrHHf_6nQ_dOWWys6S"
# ── Stripe (payments) ─────────────────────────────────────
STRIPE_SECRET_KEY="" # sk_test_... or sk_live_...
STRIPE_WEBHOOK_SECRET="" # whsec_... from Stripe dashboard
STRIPE_PRICE_SINGLE="" # price_... for $799 single report
STRIPE_PRICE_QUARTERLY="" # price_... for $2,400/yr subscription
# Custom quotes handled outside Stripe
# ── Cloudflare R2 (object storage) ────────────────────────
R2_ACCOUNT_ID=""
R2_ACCESS_KEY_ID=""
R2_SECRET_ACCESS_KEY=""
R2_BUCKET="maghreb-reports"
R2_PUBLIC_URL="" # https://reports.maghrebinsights.co (custom domain on R2)
# Local dev: uses Minio (see docker-compose.yml)
MINIO_ENDPOINT="http://localhost:9000"
MINIO_ACCESS_KEY="minioadmin"
MINIO_SECRET_KEY="minioadmin"
MINIO_BUCKET="maghreb-reports"
# ── Anthropic (LLM narrative generation) ──────────────────
ANTHROPIC_API_KEY=""
ANTHROPIC_MODEL="claude-sonnet-4-6" # override to use different model
# ── World Bank NADA (microdata catalog) ───────────────────
NADA_API_KEY="" # Register at microdata.worldbank.org
NADA_BASE_URL="https://microdata.worldbank.org/index.php/api"
# ── Resend (transactional email) ──────────────────────────
RESEND_API_KEY=""
RESEND_FROM="reports@maghrebinsights.co"
RESEND_AUDIENCE_ID="" # lead capture audience
# ── Vercel (web deployment) ───────────────────────────────
VERCEL_TOKEN=""
VERCEL_ORG_ID=""
VERCEL_PROJECT_ID=""
NEXT_PUBLIC_API_URL="http://localhost:8000"
NEXT_PUBLIC_SUPABASE_URL="" # same as SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY="" # same as SUPABASE_ANON_KEY
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="" # pk_test_... or pk_live_...
NEXT_PUBLIC_PLAUSIBLE_DOMAIN="" # maghrebinsights.co
# ── Railway (API + worker deployment) ─────────────────────
RAILWAY_TOKEN=""
# ── Sentry (error tracking) ───────────────────────────────
SENTRY_DSN="https://1c648f7c76c40f95c66c95c94308fd54@o4507759307718656.ingest.de.sentry.io/4511310585921616"
NEXT_PUBLIC_SENTRY_DSN="" # web project DSN (create separate Sentry project for web)
SENTRY_AUTH_TOKEN=""
SENTRY_ORG=""
SENTRY_PROJECT_API="maghreb-api"
SENTRY_PROJECT_WEB="maghreb-web"
# ── Report generation ─────────────────────────────────────
DISCLOSURE_THRESHOLD="30" # min cell count for disclosure control
REPORT_OUTPUT_DIR="./data/reports" # local output path
REPORT_TEMPLATES_DIR="./reports/templates"
MATPLOTLIB_SEED="42" # for deterministic chart output
# ── Local dev only ────────────────────────────────────────
MAILHOG_SMTP_HOST="localhost"
MAILHOG_SMTP_PORT="1025"
MAILHOG_UI="http://localhost:8025"