-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
Judah Paul edited this page Jul 10, 2026
·
11 revisions
The app reads its configuration from environment variables. A template lives at
compose/svelte-kit/.env.example.
| Variable | Default | Purpose |
|---|---|---|
DATABASE_PATH |
./src/data.db |
Path to the SQLite database file. The schema is created on first boot, so the path only needs to be writable. In the production image this is /app/src/data.db. |
OPENAIP_API_KEY |
unset |
OpenAIP key for airspace overlays and no-fly-zone safety checks. Server-side only. When unset, /api/airspace returns an empty zone list and the airspace overlay and airspace safety checks are inactive; altitude and geofence checks still run. |
VITE_ALTITUDE_ANGEL_API_KEY |
unset | Key for the Altitude Angel airspace endpoint. |
NODE_ENV |
set by compose |
production uses the serial link at /dev/ttyACM0; development uses the SITL TCP link. |
Create a free account at openaip.net, generate an API
key, and set OPENAIP_API_KEY. The key is read only in the server route
/api/airspace, which queries OpenAIP and returns simplified zones to the front
end, so the key is never exposed to the browser. See Mission Planning for
how the zones drive the overlay and the pre-flight checks.