Expand description
Configuration for the stargazer service.
Configuration is loaded from a TOML file and can be overridden by environment variables. The TOML file is divided into sections matching the service tiers:
[postgres]— Database connection pool settings.[rdio]— Rdio API upload endpoint and retry policy.[tier1]— Discovery sweep intervals for Pi-Star, XLX API, and ircDDB.[tier2]— XLX UDP JSON monitor concurrency and idle thresholds.[tier3]— Deep D-STAR protocol connections for voice capture.[audio]— MP3 encoding parameters.[server]— HTTP API bind address.
Environment variable overrides follow the STARGAZER_SECTION_FIELD pattern:
| Variable | Overrides |
|---|---|
STARGAZER_POSTGRES_URL | postgres.url |
STARGAZER_RDIO_ENDPOINT | rdio.endpoint |
STARGAZER_RDIO_API_KEY | rdio.api_key |
STARGAZER_TIER3_DPLUS_CALLSIGN | tier3.dplus_callsign |
STARGAZER_SERVER_LISTEN | server.listen |
Structs§
- Audio
Config 🔒 - Audio encoding configuration.
- Config 🔒
- Top-level configuration for the stargazer service.
- Postgres
Config 🔒 PostgreSQLconnection pool settings.- Rdio
Config 🔒 - Rdio API upload configuration.
- Server
Config 🔒 - HTTP API server configuration.
- Tier1
Config 🔒 - Tier 1: discovery sweep configuration.
- Tier2
Config 🔒 - Tier 2: XLX live monitoring configuration.
- Tier3
Config 🔒 - Tier 3: deep D-STAR protocol connection configuration.
Functions§
- default_
activity_ 🔒threshold_ secs - default_
audio_ 🔒format - default_
auto_ 🔒promote - default_
dplus_ 🔒callsign - default_
ircddb 🔒 - default_
listen 🔒 - default_
max_ 🔒concurrent_ connections - default_
max_ 🔒concurrent_ monitors - default_
max_ 🔒connections - default_
max_ 🔒retries - default_
mp3_ 🔒bitrate - default_
pistar 🔒 - default_
postgres_ 🔒url - default_
rdio_ 🔒api_ key - default_
rdio_ 🔒endpoint - default_
retry_ 🔒interval_ secs - default_
tier2_ 🔒idle_ disconnect_ secs - default_
tier3_ 🔒idle_ disconnect_ secs - default_
xlx_ 🔒api - load 🔒
- Loads configuration from a TOML file, then applies environment variable overrides.