Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
65 lines (52 loc) · 2.91 KB
/
Copy path.env.example
File metadata and controls
65 lines (52 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
# Copy to .env for local development. Never commit .env.
# CHIRPS needs no credentials. ERA5-Land credentials live in ~/.cdsapirc, NOT here.
# Allowed: development | test | production
CLIMATEADAPT_ENVIRONMENT=development
# Allowed: DEBUG | INFO | WARNING | ERROR
CLIMATEADAPT_LOG_LEVEL=INFO
# Root for cached data (relative to where you run commands). Already git-ignored.
CLIMATEADAPT_DATA_DIR=data
# Set to false to forbid all network access and use only the local cache.
CLIMATEADAPT_ALLOW_DOWNLOADS=true
# Seconds, applied per network operation.
CLIMATEADAPT_HTTP_TIMEOUT_SECONDS=60
# User-Agent sent with outbound HTTP requests.
CLIMATEADAPT_HTTP_USER_AGENT=climateadapt-lab/0.1 (research prototype)
# Demo mode (P14): serve GET /v1/demo/* from stored snapshots instead of live runs.
CLIMATEADAPT_DEMO_MODE=false
# Snapshot directory (default: tracked demo/snapshots/, works with zero keys).
# CLIMATEADAPT_DEMO_SNAPSHOTS_DIR=demo/snapshots
# CHIRPS v3 repository root (the connector appends monthly/global/tifs/<file>).
CLIMATEADAPT_CHIRPS_BASE_URL=https://data.chc.ucsb.edu/products/CHIRPS/v3.0
# CHIRPS access mode:
# remote - read ONE pixel per month with HTTP range requests (kilobytes, fast; default)
# download - download whole ~22 MB monthly files (archival provenance with SHA-256)
CLIMATEADAPT_CHIRPS_ACCESS=remote
# Parallel remote reads while warming the cache (1-8). Keep modest to be polite to the server.
CLIMATEADAPT_PREFETCH_WORKERS=4
# Copernicus CDS client limits. cdsapi's own defaults (500 retries, 120 s sleeps) can block a
# call for hours; these bound it. Applied only if the installed cdsapi exposes the options.
CLIMATEADAPT_CDS_RETRY_MAX=5
CLIMATEADAPT_CDS_SLEEP_MAX_SECONDS=60
CLIMATEADAPT_CDS_TIMEOUT_SECONDS=60
# FastAPI surface (P05). CORS origins as a JSON list; the default is the Vite dev origin.
CLIMATEADAPT_API_CORS_ORIGINS=["http://localhost:5173"]
# Background-job bounds: per-job wall-clock timeout, finished-job retention, workers, cap.
CLIMATEADAPT_API_JOB_TIMEOUT_SECONDS=900
CLIMATEADAPT_API_JOB_TTL_SECONDS=3600
CLIMATEADAPT_API_JOB_MAX_WORKERS=4
CLIMATEADAPT_API_JOB_MAX_JOBS=1000
# Scenario SQLite file (P11; default: <data_dir>/scenarios.sqlite3) and the
# largest accepted request body in bytes (larger bodies get 413).
# CLIMATEADAPT_API_DB_PATH=data/scenarios.sqlite3
CLIMATEADAPT_API_MAX_BODY_BYTES=1048576
# Baseten Model APIs for application inference (see docs/LLM_PROVIDER_NOTES.md).
# Never commit a real key. The app key and Muse Code's own auth are separate.
# Base URL (verified from Baseten docs; override rarely needed).
CLIMATEADAPT_BASETEN_BASE_URL=https://inference.baseten.co/v1
# Model slug (default below; official docs example: meta-models/muse-spark-open).
CLIMATEADAPT_BASETEN_MODEL_ID=meta-models/muse-spark-open-1026
# API key (preferred name; stored as SecretStr, never printed).
CLIMATEADAPT_BASETEN_API_KEY=
# Accepted alternative (Baseten's own docs use this name).
BASETEN_API_KEY=