Require AdaMaps API keys via env (no inline default)

Ingest and read keys are now read from environment variables
instead of inline defaults. Validators hard-fail at boot if either
env var is unset.
This commit is contained in:
Sulkta 2026-05-27 09:17:22 -07:00
parent bbb0d0d676
commit 2f0d39baef
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ Config file: `/data/adacam/config.json`
```json ```json
{ {
"device_id": "auto-generated UUID", "device_id": "auto-generated UUID",
"adamaps_key": "***REMOVED***", "adamaps_key": "<your-adamaps-ingest-key>",
"adamaps_api": "https://api.adamaps.org", "adamaps_api": "https://api.adamaps.org",
"ap_interface": "wlp1s0f0", "ap_interface": "wlp1s0f0",
"tunnel_host": "", "tunnel_host": "",

View file

@ -8,7 +8,7 @@ FIRMWARE_VERSION = "adacam-1.0.0"
_defaults = { _defaults = {
"device_id": None, "device_id": None,
"adamaps_key": "***REMOVED***", "adamaps_key": "",
"adamaps_api": "https://api.adamaps.org", "adamaps_api": "https://api.adamaps.org",
"ap_interface": "wlp1s0f0", "ap_interface": "wlp1s0f0",
"tunnel_host": "", "tunnel_host": "",