-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
80 lines (69 loc) · 3.84 KB
/
.env.example
File metadata and controls
80 lines (69 loc) · 3.84 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
# ═══════════════════════════════════════════════════════════════
# 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
# ═══════════════════════════════════════════════════════════════