mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
scaffold: initial repository structure
This commit is contained in:
commit
36ebbcb250
12 changed files with 102 additions and 0 deletions
31
etc-templates/central.toml
Normal file
31
etc-templates/central.toml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Central Configuration Template
|
||||
# ==============================
|
||||
# This is a TEMPLATE. Copy to /etc/central/central.toml on the deployment host.
|
||||
# Replace all CHANGE_ME values with real configuration.
|
||||
# NEVER commit the real /etc/central/central.toml to version control.
|
||||
|
||||
# === NWS adapter ===
|
||||
# Fetches weather alerts and observations from the National Weather Service API.
|
||||
# contact_email is required by NWS User-Agent policy.
|
||||
[adapters.nws]
|
||||
enabled = true
|
||||
cadence_s = 60
|
||||
states = ["ID", "OR", "WA", "MT", "WY", "UT", "NV"]
|
||||
contact_email = "CHANGE_ME@example.invalid"
|
||||
|
||||
# === CloudEvents wire format ===
|
||||
# All events published to NATS follow the CloudEvents 1.0 specification.
|
||||
[cloudevents]
|
||||
type_prefix = "central"
|
||||
source = "central/adapters/nws"
|
||||
schema_version = "1.0.0"
|
||||
|
||||
# === NATS ===
|
||||
# Connection URL for the NATS server with JetStream enabled.
|
||||
[nats]
|
||||
url = "nats://localhost:4222"
|
||||
|
||||
# === Postgres / TimescaleDB ===
|
||||
# DSN for the archive database. Must have TimescaleDB and PostGIS extensions.
|
||||
[postgres]
|
||||
dsn = "postgresql://central:CHANGE_ME@localhost/central"
|
||||
Loading…
Add table
Add a link
Reference in a new issue