Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
104 lines (90 loc) · 5.37 KB
/
Copy path.env.example
File metadata and controls
104 lines (90 loc) · 5.37 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# ═══════════════════════════════════════════════════════════════
# Prexus Intelligence — Environment Variables Template
# Copy to .env for local development. NEVER commit .env to git.
# ═══════════════════════════════════════════════════════════════
# ── Go API Gateway ────────────────────────────────────────────
ENV=development
PORT=8080
JWT_SECRET=change-this-to-a-long-random-string-in-production
# Points Go gateway to local Python engine during development
DATA_ENGINE_URL=http://localhost:8001
# Shared secret between gateway and engine
ENGINE_SECRET=dev-engine-secret-change-in-production
# ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
# ── Database (local PostgreSQL) ───────────────────────────────
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASS=postgres
DB_NAME=prexus
# OR full DSN:
# DATABASE_URL=postgresql://postgres:postgres@localhost:5432/prexus
# ── Python Data Engine ────────────────────────────────────────
MONTE_CARLO_DRAWS=10000
ERA5_CACHE_DIR=/tmp/meteorium_era5
# ── AI API Keys (at least one required for AI features) ───────
# Free tier available for all three:
GEMINI_API_KEY= # https://aistudio.google.com/app/apikey
ANTHROPIC_API_KEY= # https://console.anthropic.com/
OPENAI_API_KEY= # https://platform.openai.com/api-keys
# ── Data Source API Keys ──────────────────────────────────────
# NASA FIRMS — Free, register at:
# https://firms.modaps.eosdis.nasa.gov/api/
# Takes ~2 minutes. No credit card.
NASA_FIRMS_KEY=
# Copernicus CDS — Free, register at:
# https://cds.climate.copernicus.eu/user/register
# Unlock ERA5 reanalysis (10yr climate baseline).
CDS_URL=https://cds.climate.copernicus.eu/api/v2
CDS_KEY= # Format: UID:APIKEY (from CDS account settings)
# ═══════════════════════════════════════════════════════════════
# HOW TO GET EACH KEY
# ═══════════════════════════════════════════════════════════════
#
# 1. NASA FIRMS (fire detections)
# → firms.modaps.eosdis.nasa.gov/api/
# → Click "Get MAP_KEY" → enter email → key arrives instantly
# → Free, 500 req/day on DEMO_KEY without registration
#
# 2. Copernicus CDS (ERA5 climate reanalysis)
# → cds.climate.copernicus.eu/user/register
# → After login: cds.climate.copernicus.eu/user/<UID>
# → Copy UID and API key
# → Create ~/.cdsapirc:
# url: https://cds.climate.copernicus.eu/api/v2
# key: <UID>:<API-KEY>
# → OR set CDS_KEY env var as "<UID>:<API-KEY>"
#
# 3. Gemini API (fastest, generous free tier)
# → aistudio.google.com/app/apikey
# → One click, free up to 15 req/min
#
# 4. Open-Meteo (weather + ERA5 archive)
# → NO KEY REQUIRED — completely free
# → Already works out of the box
#
# 5. Carbon Monitor (CO2 emissions)
# → NO KEY REQUIRED — completely free
# → carbonmonitor.org
# ═══════════════════════════════════════════════════════════════
# ═══════════════════════════════════════════════════════════════
# v2 additions (see docs/AUDIT_FIXES.md)
# ═══════════════════════════════════════════════════════════════
# Production refuses to start with the placeholder secrets above. Generate real ones:
# openssl rand -hex 32
# ENGINE_SECRET must be set on BOTH gateway and engine (engine refuses to boot without it).
# Docker/K8s: use ENGINE_SECRET_FILE=/run/secrets/engine_secret instead of the env var.
# Local development only (never production): ENGINE_ALLOW_INSECURE=1 disables engine auth.
# Access applications (pricing page → POST /apply). They are always stored in Postgres;
# these only control the email notification. There is no hardcoded fallback recipient any more.
NOTIFY_EMAILS= # comma-separated, e.g. founders@prexus.in
SMTP_HOST=
SMTP_PORT=587
SMTP_USER=
SMTP_PASS=
# LLM gateway (Go is the only place that talks to providers)
ALLOWED_MODELS= # default: claude-opus-5-5,claude-sonnet-5-5,claude-haiku-4-5-20251001 (+2 legacy IDs)
AI_DAILY_QUOTA=100 # per user per day
# Air-gap / sovereign: point the gateway at a local OpenAI-compatible server (vLLM, Ollama, NIM).
# OPENAI_BASE_URL=http://llm.internal:8000 OPENAI_MODEL=qwen3-32b
# ANTHROPIC_BASE_URL= GEMINI_BASE_URL=