Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
66 lines (55 loc) · 2.91 KB
/
Copy path.env.example
File metadata and controls
66 lines (55 loc) · 2.91 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
# ClimateVision Environment Variables
# Copy this file to .env and fill in your actual credentials.
# NEVER commit .env or secrets/ to git!
# ---------------------------------------------------------------------------
# Google Earth Engine (required for real satellite imagery)
# ---------------------------------------------------------------------------
# Service account email registered with Earth Engine.
GEE_SERVICE_ACCOUNT=your-service-account@your-project.iam.gserviceaccount.com
# Path to the service-account JSON key, relative to the project root.
# Keep the file in secrets/ (gitignored).
GEE_SERVICE_ACCOUNT_KEY=secrets/gee-key.json
# Google Cloud / Earth Engine project ID.
GEE_PROJECT_ID=your-gee-project-id
# ---------------------------------------------------------------------------
# Sentinel Hub (optional future source)
# ---------------------------------------------------------------------------
SENTINEL_HUB_CLIENT_ID=your_client_id_here
SENTINEL_HUB_CLIENT_SECRET=your_client_secret_here
# ---------------------------------------------------------------------------
# API Security
# ---------------------------------------------------------------------------
# Secret used for API-key hashing and any signed tokens.
# Generate with: openssl rand -hex 32
API_SECRET_KEY=change_me_in_production
# Set to 1 ONLY in local development to enable the cv_dev bypass key.
# NEVER enable this in production.
CLIMATEVISION_ALLOW_DEV_KEY=0
# ---------------------------------------------------------------------------
# CORS / Frontend
# ---------------------------------------------------------------------------
# Comma-separated list of origins allowed to call the API.
# Include your production domain and any local dev URLs.
CLIMATEVISION_CORS_ORIGINS=https://climatevision.green,https://www.climatevision.green,http://localhost:5173,http://127.0.0.1:5173
# ---------------------------------------------------------------------------
# LLM Reporting (optional)
# ---------------------------------------------------------------------------
ANTHROPIC_API_KEY=your_anthropic_api_key
CLIMATEVISION_LLM_MODEL=claude-haiku-4-5-20251001
# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------
# SQLite is used by default. Use an absolute path or a project-relative path.
# For production with high traffic, switch to PostgreSQL and update db.py.
DATABASE_URL=sqlite:///outputs/climatevision.sqlite3
# ---------------------------------------------------------------------------
# SMTP / Alert Delivery (for the alert delivery worker)
# ---------------------------------------------------------------------------
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=your-email@example.com
SMTP_PASSWORD=your-email-password
SMTP_USE_TLS=true
SMTP_FROM_EMAIL=alerts@climatevision.org
ALERT_DELIVERY_MAX_RETRIES=3
ALERT_DELIVERY_POLL_INTERVAL_SECONDS=60