mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-12-06 15:34:26 +00:00
506 lines
27 KiB
Plaintext
506 lines
27 KiB
Plaintext
# Beacon configuration file: local development starter. Copy to config.yaml and adjust.
|
|
# The fully annotated reference, with every key and its default, is
|
|
# https://github.com/MeshCore-Beacon/beacon-docs/blob/main/app_config/config.yaml.example
|
|
# Durations are Go strings (30s, 1h, 168h); negative values prevent startup
|
|
# (observers.delete_after excepted, where nonpositive disables it).
|
|
|
|
# Public reads stay available. No key means admin routes return 503.
|
|
# Prefer BEACON_API_KEY in the service environment; never commit a real key.
|
|
# At least 16 characters with no inner whitespace (surrounding whitespace is
|
|
# trimmed); a shorter key prevents startup.
|
|
auth:
|
|
api_key: ""
|
|
|
|
log:
|
|
# Environment LOG_LEVEL / LOG_FORMAT override these values.
|
|
level: info # debug, info, warn, error
|
|
format: text # text or json
|
|
|
|
server:
|
|
# Only these direct proxy peers may set the client IP through X-Real-IP.
|
|
# The proxy must overwrite that header, not pass through client input.
|
|
# Leave empty for direct access (logs a startup warning). Invalid/empty CIDR
|
|
# entries prevent startup. A single host needs /32 for IPv4 or /128 for IPv6;
|
|
# bare IP addresses are not accepted.
|
|
# For Docker, list the actual proxy/compose network CIDR (e.g. 172.20.0.0/24).
|
|
# For a local host proxy, use ["127.0.0.1/32", "::1/128"].
|
|
# Direct-client proxy examples; X-Forwarded-For alone is not used:
|
|
# Apache 2.4.10+ (mod_headers, in the proxy virtual host):
|
|
# RequestHeader set X-Real-IP "expr=%{REMOTE_ADDR}"
|
|
# nginx (in the proxy location):
|
|
# proxy_set_header X-Real-IP $remote_addr;
|
|
# Caddy (inside the reverse_proxy block):
|
|
# header_up X-Real-IP {http.request.remote.host}
|
|
# With additional proxy hops, first configure their trust at the edge proxy
|
|
# and pass its validated client address rather than a client-supplied header.
|
|
trusted_proxies: []
|
|
# Address of the admin listener serving Prometheus /metrics, e.g. 127.0.0.1:9090. Off when empty.
|
|
# It has no authentication: bind it to a private interface.
|
|
admin_listen: ""
|
|
# read_only: true boots a server that never writes: no migrations, no ingest, no background jobs, no
|
|
# MeshMapper imports, and every database session is read-only. Used to compare two builds on one database.
|
|
read_only: false
|
|
|
|
# Applies to /api/v1/* only. Both counters are local to this Beacon instance.
|
|
# Set trusted_proxies correctly before using a reverse proxy, or clients share
|
|
# the proxy's budget. IPv6 clients share a /64 budget to prevent address rotation.
|
|
ratelimit:
|
|
enabled: true
|
|
requests_per_minute: 600
|
|
# Maximum requests in a one-second sliding window, not token-bucket capacity.
|
|
# Omitted/zero defaults to requests_per_minute. Negative limits prevent startup.
|
|
# A 429 returns error.code=rate_limited and Retry-After (1 or 60 seconds).
|
|
burst: 600
|
|
|
|
# Database pools. custom_all (default) opens api_custom 8, ingest 6, maint 4 connections (18); split opens
|
|
# 22 (api_custom 7, api_cached 5); single opens 18 (api_legacy 8, ingest, maint).
|
|
# ingest grows to one connection per CPU on hosts with more than 6 CPUs, adding to each total.
|
|
# Keep max_connections well above that.
|
|
#database:
|
|
# # custom_all (default): every API statement gets a custom plan.
|
|
# # split: statements admitted to the generic-plan class (db/planpolicy/cached_gen.go) run on cached
|
|
# # generic plans on api_cached; every other API statement keeps custom plans.
|
|
# # single: rollback. One API pool on today's settings; every guard family observes.
|
|
# api_plan_layout: custom_all
|
|
|
|
# Cost guards on the public /api/v1 group (not /admin, not /ws). Every family observes by default:
|
|
# nothing is refused, only beacon_guard_would_refuse_total counts. Listed families enforce:
|
|
# 429 (4 concurrent DB requests per client, 5 s wait), 503 (pool busy 5 s; class deadline 5/10/30 s).
|
|
# Families: routes, channel_messages, packets_global, packets_region, packets_window,
|
|
# packet_detail, stats, other. PUT /api/v1/admin/config changes the list at runtime.
|
|
#guards:
|
|
# enforce: []
|
|
# budget: shadow # the per-client DB-time budget only records; enforcement is not available
|
|
|
|
# Daily read-only plan regression check (GET /api/v1/admin/db/planguard, beacon_planguard_* metrics).
|
|
# Enable on large deployments; plan expectations assume production-sized tables.
|
|
#planguard:
|
|
# daily_check: false
|
|
|
|
# Read models. Serve region and scope channel message pages from channel_message_iatas once this process has
|
|
# repaired and verified it; until then, and whenever it is not trusted, those pages answer 503 with Retry-After.
|
|
# false is the kill switch: those pages stay off (503). The table is still maintained, so turning it back on needs
|
|
# only a restart.
|
|
#readmodels:
|
|
# cmi:
|
|
# enabled: true
|
|
# packet_sites:
|
|
# # Serve region packet pages (iatas, region) from packet_sites once this process has repaired and verified
|
|
# # it; until then they answer 503. false turns them off (503); the table is still maintained and swept.
|
|
# enabled: true
|
|
# # Pacing of the one-off backfills (packet_sites, cmi and observation payload types). After each slice or batch a
|
|
# # fill sleeps max(min_pause, elapsed x (1 - duty) / duty), where elapsed is that slice's run time, so it is busy at
|
|
# # most duty of the time and a slow disk stretches the pauses on its own. Pacing changes only when the fills run,
|
|
# # not what they write. The resolved values are logged at boot in the "config: loaded" line.
|
|
# fill:
|
|
# duty: 0.5 # share of time a fill may be busy, 0.01 to 1; 0.25 on a slow (rotational) disk
|
|
# min_pause: 100ms # shortest pause after a slice or batch, 0s to 1m
|
|
# packet_sites_slice: 500000 # observations per packet_sites backfill slice, 1 to 10000000
|
|
# cmi_batch: 10000 # message ids per cmi backfill batch, 1 to 1000000
|
|
|
|
# MeshMapper integrations (optional, require a regional or grouped-region API key).
|
|
# Your local MeshMapper regional or grouped-region admin can generate the key.
|
|
# A grouped-region key covers multiple regions.
|
|
# MESHMAPPER_API_KEY overrides meshmapper.api_key, even when empty. Use the
|
|
# environment for secrets, especially with backups; never use the mobile App key.
|
|
# Missing keys leave imports unconfigured; cached data and the rest of Beacon remain.
|
|
# 401/403 failures retain cached data and report authentication/permission errors.
|
|
# Import transport scopes and
|
|
# IATA border outlines from MeshMapper instead of maintaining scopes: and
|
|
# iatas.*.borderFile by hand.
|
|
#
|
|
# Scope-name discovery. Manual scopes remain authoritative.
|
|
# Every known IATA, including ones auto-created from traffic, is looked up in its
|
|
# country's zone list (shared with zones below) and its site's get_scopes.php
|
|
# catalogue is imported; IATAs MeshMapper doesn't list are skipped. No sources
|
|
# to configure; a legacy sources: list is ignored with a warning.
|
|
# Catalogues covering more than one IATA are rejected.
|
|
# 64 names per catalogue, 64 KiB per response; no page scraping.
|
|
# Catalogues and ETags persist in PostgreSQL. Failed refreshes retain known names.
|
|
# Refresh success/failure/freshness is logged under component=meshmapper.scopes.
|
|
# Turning scopes off deactivates imported matching keys on restart;
|
|
# historical scope identities and recorded evidence are retained.
|
|
# Region-filtered scope lists and scope stats show imported names only under the
|
|
# IATAs whose catalogue lists them; IATAs without a catalogue show manual scopes only.
|
|
#meshmapper:
|
|
# api_key: ""
|
|
# scopes:
|
|
# enabled: false
|
|
# refresh_interval: 24h # 1h-24h (MeshMapper allows one get_scopes.php per region per 55m); one source per 15s tick
|
|
#
|
|
# Region boundaries (Zones API). Every known IATA, including ones auto-created
|
|
# from traffic, is looked up in its country's zone list, then its get_geojson.php
|
|
# outline is imported; new IATAs are picked up while running. An imported boundary
|
|
# overrides that IATA's borderFile on the border map and for nodes.mark_foreign.
|
|
# A missing or failed boundary keeps the last good import, or the borderFile when
|
|
# there is none. Disabling drops every import on restart. Logged under
|
|
# component=meshmapper.zones.
|
|
# Each country's zone list is fetched at most once a day (MeshMapper allows one
|
|
# get_zones.php per country per 23.5h) and saved, so restarts don't refetch it.
|
|
# Failed or rate-limited requests also wait out the limit, or Retry-After if longer.
|
|
# Listed IATAs also take their display name and approximate location from the
|
|
# zone list, unless iatas: below sets a name or lat/lng for them.
|
|
# import_groups turns MeshMapper zone groups (e.g. ONQC: YOW, YQB, YUL) into
|
|
# regions, from the zone lists already fetched. A group is imported when at least
|
|
# one member is heard by an observer or configured here, with its full member list (members Beacon hasn't
|
|
# heard yet are added as IATAs); slug = lowercased group code, centered on the
|
|
# members' average location, listed after the regions below. A region below with
|
|
# the same slug wins.
|
|
# Imported regions are removed when the group disappears or stops qualifying,
|
|
# and all of them when import_groups is turned off. Requires zones.enabled.
|
|
# zones:
|
|
# enabled: false
|
|
# import_groups: false
|
|
# refresh_interval: 24h # 24h-168h (one get_geojson.php per region per 23.5h); one request per 15s tick, ETag-conditional
|
|
#
|
|
# Public hashtag channels (get_channels.php). Every known IATA that MeshMapper
|
|
# lists is looked up on its site, the same way as scopes. Each key and hash is
|
|
# checked against the name before use; a list with any mismatch is rejected and
|
|
# the last good one kept. Imported channels decrypt like configured ones (history
|
|
# is backfilled when a key first appears) and are listed under that IATA when
|
|
# /channels is filtered by region. Saved in PostgreSQL across restarts; failures
|
|
# wait out the 23.5h limit. Turning it off removes the region listing on restart.
|
|
# Logged under component=meshmapper.channels.
|
|
# channels:
|
|
# enabled: false
|
|
# refresh_interval: 24h # 24h-168h (one get_channels.php per region per 23.5h)
|
|
#
|
|
# Repeater site details (get_repeaters.php). Every known IATA that MeshMapper
|
|
# lists is fetched from its site, the same way as channels; a MeshMapper group is
|
|
# fetched once, since any member's site lists the whole group. Each repeater's
|
|
# admin-entered site details (power, hardware, antenna, heights, power source,
|
|
# notes), CARpeater flag, admin names, confirmed scopes and default scope are
|
|
# shown on node detail as `meshmapper`, matched by full public key. Positions,
|
|
# status and radio data are not imported. A failed refresh keeps the last good
|
|
# list and retries after 1h (or Retry-After); a 429 pauses every region, since
|
|
# the key's budget (1,000/day, 30/min) is shared. An empty list clears the region.
|
|
# 6h costs 4 requests per group or ungrouped IATA per day. Each import refreshes
|
|
# cached node detail. Turning it off deletes the import on restart but keeps the
|
|
# backoff. Logged under component=meshmapper.repeaters.
|
|
# repeaters:
|
|
# enabled: false
|
|
# refresh_interval: 6h # 1h-24h
|
|
|
|
iatas:
|
|
YVR:
|
|
name: Vancouver International
|
|
lat: 49.1967
|
|
lng: -123.1815
|
|
# borderFile: borders/yvr.geojson # optional GeoJSON Feature (Polygon/MultiPolygon)
|
|
# # (or use meshmapper.zones above)
|
|
# # for the region border map; path is relative to
|
|
# # this file's directory; validated at boot.
|
|
YYJ:
|
|
name: Victoria International
|
|
lat: 48.6469
|
|
lng: -123.4260
|
|
YYC:
|
|
name: Calgary International
|
|
lat: 51.1139
|
|
lng: -114.0200
|
|
YEG:
|
|
name: Edmonton International
|
|
lat: 53.3097
|
|
lng: -113.5797
|
|
YOW:
|
|
name: Ottawa International
|
|
lat: 45.3225
|
|
lng: -75.6692
|
|
YYZ:
|
|
name: Toronto Pearson
|
|
lat: 43.6777
|
|
lng: -79.6248
|
|
|
|
# Hand-written regions; optional with meshmapper.zones.import_groups. Seeding
|
|
# sets each region's members to exactly this list.
|
|
regions:
|
|
- slug: western-canada
|
|
name: Western Canada
|
|
description: BC and Alberta # optional, shown with the region
|
|
display_order: 1
|
|
center_lat: 51.0
|
|
center_lng: -114.0
|
|
zoom_level: 5
|
|
iatas: [YVR, YYJ, YYC, YEG]
|
|
|
|
- slug: eastern-canada
|
|
name: Eastern Canada
|
|
display_order: 2
|
|
center_lat: 45.0
|
|
center_lng: -75.0
|
|
zoom_level: 5
|
|
iatas: [YOW, YYZ]
|
|
|
|
channel_keys:
|
|
# Hashtag channels: Beacon derives the PSK automatically from the tag name.
|
|
# secret = SHA256("#tag")[:16], channel_hash = SHA256(secret)[0]
|
|
# Hashtag names should be provided without the # prefix.
|
|
# Beacon prepends # automatically before deriving the key.
|
|
# A plain name is listed under every region; add region: <slug> (a configured
|
|
# region) to list it only there when /channels is filtered by region.
|
|
hashtags:
|
|
- meshcore
|
|
# - name: ottawa-mesh
|
|
# region: eastern-canada
|
|
|
|
# Explicit keys: provide the channel hash (hex) and key (hex) directly.
|
|
# An optional name can be set for display purposes.
|
|
keys:
|
|
"11":
|
|
key: "8b3387e9c5cdea6ac9e5edbaa115cd72"
|
|
name: "Public"
|
|
# region: eastern-canada # optional, as for hashtags
|
|
|
|
# Regional transport scopes for matching TRANSPORT_FLOOD packets.
|
|
# Plain names have # prepended automatically (e.g. "bc" → "#bc").
|
|
# region (required) is a configured region slug; region-filtered scope lists
|
|
# and scope stats show the scope under that region's IATAs. Matching stays global.
|
|
# Optional when meshmapper.scopes covers your regions.
|
|
scopes:
|
|
- name: bc
|
|
region: western-canada
|
|
- name: "#west"
|
|
region: western-canada
|
|
|
|
# Units clients show. Any other value stops startup.
|
|
display:
|
|
temperature_unit: c # c or f
|
|
distance_unit: metric # metric or imperial
|
|
|
|
# How many cards one Atlas holds, in the browser or synced to an account. 1 to 100.
|
|
atlas:
|
|
limit: 20
|
|
|
|
telemetry:
|
|
retention: 744h # 31 days
|
|
# How often an observer's status is stored as a snapshot (default 15m). Observers report
|
|
# every 5 minutes by default; reports inside one window are dropped, except the first after
|
|
# a reboot. Observer alerts and charts read these snapshots:
|
|
# - battery and noise alerts need two snapshots in a row, so they react after about two windows
|
|
# - a shorter window stores more rows (5m is about 3x the rows of 15m, 1h about a quarter)
|
|
# - below the observers' report interval nothing more is stored
|
|
resolution: 15m
|
|
|
|
# Optional authenticated database/config downloads. Disabled unless explicitly enabled.
|
|
# Requires auth.api_key, a supported PostgreSQL URL and a compatible pg_dump client.
|
|
# A failed prerequisite leaves this feature unavailable; ingest and other APIs continue.
|
|
#backup:
|
|
# enabled: false
|
|
|
|
# Also covers observations and channel messages.
|
|
packets:
|
|
retention: 168h # 7 days
|
|
|
|
# Hourly analytics rollups (stats endpoints). Rollups outlive raw packets; this is also the
|
|
# longest window /stats/series and the other historical stats endpoints accept.
|
|
analytics:
|
|
rollup_retention: 2160h # 90 days
|
|
|
|
# Presence write coalescing: observer last_seen and packet last_heard_at bumps are
|
|
# batched in memory and flushed on an interval. An unclean shutdown loses at most
|
|
# one interval of presence freshness.
|
|
#presence:
|
|
# flush_interval: 30s # default: 30s
|
|
# packet_ttl: 30s # how long a quiet packet stays coalesced (default: 30s)
|
|
|
|
# Known-route retention. Routes are distilled packet history (the path a packet
|
|
# took, hop by hop), so they may outlive packets.retention; there is no required
|
|
# relationship between the two.
|
|
routes:
|
|
# How long a route is kept after it was last observed. Every new observation
|
|
# of the same path resets this clock, so routes the mesh still uses never
|
|
# expire -- only paths nothing has traveled for this long age out.
|
|
retention: 336h # 14 days
|
|
# Shorter window for rarely-seen routes: one observed fewer than
|
|
# min_observations times in total is dropped once it goes unobserved for
|
|
# this long. Must be shorter than retention, or it never applies.
|
|
grace: 168h # 7 days
|
|
# Lifetime observation count a route must reach to earn the full retention
|
|
# window. Below it a route is treated as flood noise -- a path recorded once
|
|
# or twice and never confirmed -- and only kept for the grace window. The
|
|
# count never resets, so once a route crosses this bar it stays in the
|
|
# retention tier for good.
|
|
min_observations: 3
|
|
# Routes the reconfirm sweep checks per hour for departed or now-ambiguous hops,
|
|
# run in 5-minute slices. 0 or omitted means 81000.
|
|
reconfirm_rows_per_hour: 81000
|
|
|
|
websocket:
|
|
max_connections_per_ip: 5 # default: 5
|
|
# Upgrade attempts, including failed handshakes; zero/omitted defaults to 10.
|
|
# IPv6 clients in one /64 share this budget and the connection cap. Negative
|
|
# values prevent startup.
|
|
# Rate exhaustion rejects the handshake with 429 and Retry-After: 60.
|
|
# Within this rate budget, a full concurrent cap accepts then closes with 1013
|
|
# before hello, allowing browsers to back off without evicting existing clients.
|
|
max_connects_per_minute: 10
|
|
# Live-event bytes each connection may receive, counted before compression;
|
|
# zero/omitted defaults to 1048576 (1 MiB/s) with an 8388608 (8 MiB) burst.
|
|
# Events past it are dropped, and a lagged notice, at most every 30 s, tells
|
|
# the client to refresh over REST. Negative values prevent startup.
|
|
max_send_bytes_per_second: 1048576
|
|
send_burst_bytes: 8388608
|
|
# Other sites allowed to open /ws. Exact scheme://host[:port], or
|
|
# scheme://*.domain[:port] for every subdomain of domain at any depth. The
|
|
# wildcard never matches the apex itself, and scheme and port stay exact.
|
|
#allowed_origins:
|
|
# - https://example.com
|
|
# - https://*.example.com
|
|
# Browsers always send an Origin; scripts and BEACON Mobile send none. When true, an
|
|
# upgrade with no Origin gets 403 unless it carries a ticket from GET /api/v1/ws-ticket
|
|
# in X-Beacon-Ticket. It also raises the minimum app version to the first release that
|
|
# sends tickets. Tickets are signed per server process, so run one process per public
|
|
# host. Default false.
|
|
#require_origin: false
|
|
|
|
# Node staleness, deletion, and clock-drift thresholds.
|
|
#nodes:
|
|
# mark_foreign: false # opt in to possiblyForeign on repeater nodes
|
|
# # uses the union of configured iatas.*.borderFile polygons,
|
|
# # with meshmapper.zones boundaries replacing them; requires
|
|
# # a valid border file or meshmapper.zones; no packet filtering
|
|
# stale_threshold: 24h # default: 24h
|
|
# delete_after: 720h # default: 30 days
|
|
# clock_drift_threshold: 5m # default: 5m
|
|
|
|
# Optional observer age-out. Omitted or nonpositive leaves observers intact.
|
|
# Enable only with one Beacon ingest process for this database.
|
|
# At most 1000 old observers are deleted per background.cleanup interval;
|
|
# retained observations, telemetry and ownership records prevent deletion.
|
|
#observers:
|
|
# delete_after: 720h # opt in to 30 days unseen
|
|
|
|
# CORS configuration.
|
|
# Controls which origins, methods and headers are allowed for cross-origin requests.
|
|
# Defaults to allowing all origins with GET/HEAD/OPTIONS if omitted, appropriate
|
|
# for a public read-only API. Restrict allowed_origins if you expose write endpoints.
|
|
#cors:
|
|
# allowed_origins:
|
|
# - "https://app.example.com"
|
|
# allowed_methods: [GET, HEAD, OPTIONS, POST, PUT, DELETE] # admin UI writes
|
|
# allowed_headers: [Accept, Authorization, Content-Type]
|
|
# allow_credentials: false
|
|
# max_age: 300
|
|
|
|
# Redis caching layer.
|
|
# If REDIS_ADDR is not set, caching is disabled and all reads go directly to PostgreSQL.
|
|
# TTLs are specified as duration strings e.g. "30m", "1h", "2h".
|
|
# Per-category TTLs override the global ttl. Any category left unset inherits ttl.
|
|
cache:
|
|
# Global default TTL for all cached responses. Defaults to 1h if not set.
|
|
ttl: "1h"
|
|
ttls:
|
|
# Aggregated stats endpoints (overview, observations, breakdowns, top nodes/observers,
|
|
# radio presets, scope stats). Backed by hourly rollups; keys change when a new hour rolls.
|
|
stats: "1h"
|
|
# Mostly-static reference data (IATAs, regions, scopes).
|
|
# Only changes when new observers arrive or config is reseeded.
|
|
reference: "1h"
|
|
# Individual node detail. Also explicitly invalidated on upsert.
|
|
nodes: "1h"
|
|
# Individual observer detail. Also explicitly invalidated on upsert.
|
|
observers: "1h"
|
|
|
|
# Geographic ingest filter (optional).
|
|
# Drop packets from observers outside the specified area at ingest time.
|
|
# Country codes are ISO 3166-1 alpha-2 (e.g. CA, US, GB).
|
|
# Continent codes: AF (Africa), AN (Antarctica), AS (Asia),
|
|
# EU (Europe), NA (North America), OC (Oceania), SA (South America).
|
|
# allow_iatas adds single IATA codes on top, for example one region across a
|
|
# border without letting in the rest of its country.
|
|
# An IATA passes if it matches any of the three (OR semantics).
|
|
# Omit this section entirely to accept packets from all IATAs (default).
|
|
#ingest:
|
|
# allow_countries: [CA, US]
|
|
# allow_continents: [NA]
|
|
# allow_iatas: [PAE]
|
|
|
|
# Background task intervals.
|
|
# Shorter intervals are useful during initial deployment to confirm data is
|
|
# flowing. Back off to 1h or more once stable.
|
|
#background:
|
|
# view_refresh: 1h # rebuilds radio presets; default: 1h
|
|
# reconfirm: 1h # route retention and neighbor cleanup; default: 1h
|
|
# cleanup: 1h # default: 1h
|
|
|
|
# Minimum client versions, served at GET /api/v1/info. Older clients show
|
|
# "update required" for this server. Each release has a built-in floor; these
|
|
# can raise it, never lower it. Strict X.Y.Z (no v, no suffix); anything else
|
|
# prevents startup. Default: empty, the built-in floor only.
|
|
#mobile:
|
|
# min_app_version: "2.3.4" # BEACON Mobile; built-in floor: 2.3.4
|
|
#web:
|
|
# min_web_version: "2.3.4" # Beacon Web; built-in floor: 2.3.4
|
|
|
|
# Repeater polling: observers ask nearby repeaters for battery, temperature and counters, and
|
|
# Beacon picks which observer polls which repeater and stores the readings. Off by default.
|
|
# Zero or omitted values use the defaults. Ranges match what the observer firmware accepts.
|
|
#polling:
|
|
# enabled: false # turn repeater polling on; needs mqtt_hosts
|
|
# mqtt_hosts: [] # brokers your observers publish to: plain hostnames, no port, up to 4
|
|
# direct_window: 1h # poll a repeater again once its newest reading is this old; 30m to 24h
|
|
# grace: 30m # extra wait for each standby before it steps in for the poller; 10m to 2h
|
|
# max_requests: 2 # poll attempts per repeater in each window; 1 to 3
|
|
# reading_retention: 744h # how long readings are kept; at least 1h (default 31 days)
|
|
# min_client_version: "" # oldest observer firmware allowed to poll, as X.Y.Z; empty allows all
|
|
# excluded_nodes: [] # repeaters that are never polled; up to 16 public keys, 64 hex characters each
|
|
# foreign_claims: off # off: every polling claim is treated as this server's own.
|
|
# # check: a claim is this server's own only when its signed poll_url names this
|
|
# # server's DOMAIN (from the environment). Older observer firmware sends no
|
|
# # poll_url; its claim is judged by the broker it came through, which needs
|
|
# # MQTT_BROKER_n_REBROADCAST=true on a rebroadcaster and is its own when that
|
|
# # broker is in mqtt_hosts. A claim with neither is dropped. Readings from
|
|
# # other observers are kept and shown as foreign.
|
|
# paused: false # true tells every observer to stop polling, without turning the feature off
|
|
# authority: evidence # who can be chosen to poll. evidence: any observer, ranked by how well Beacon
|
|
# # has heard the repeater through it. approved: only observers you approve
|
|
# evidence_window: 168h # how far back a repeater's zero-hop adverts count as proof an observer hears
|
|
# # it; 24h to 720h. Adverts older than packets.retention are gone either way
|
|
#
|
|
# # Telemetry requests: signed-in users ask for a repeater to be polled. They also need accounts on
|
|
# # and BEACON_SECRET_KEY in .env (32 random bytes in base64, from: openssl rand -base64 32).
|
|
# # Losing or changing the key makes the stored guest passwords unreadable.
|
|
# requests_per_user: 6 # repeaters one user may ask to have polled; 0 to 20, 0 turns requests off
|
|
# offline_disable_days: 7 # days no observer hears a repeater before its requests are switched off; 1 to 365
|
|
# request_observers: all # which observers may be handed a requested repeater and its guest password.
|
|
# # all: any observer Beacon has heard the repeater through.
|
|
# # approved: only observers you approve under /api/v1/admin/polling.
|
|
# # Set approved if you want to vet observers before they receive guest passwords.
|
|
|
|
# Outgoing mail: the SMTP server Beacon sends account mail (sign-up, password reset) and email alerts
|
|
# through. Required when accounts.mode is local. The password comes from BEACON_SMTP_PASSWORD.
|
|
#mail:
|
|
# host: "" # your SMTP server, e.g. smtp.example.org
|
|
# port: 587 # SMTP port; default: 587
|
|
# username: "" # SMTP login; empty sends without signing in
|
|
# from: "" # the sender people see, e.g. "Beacon <no-reply@example.org>"
|
|
# starttls: true # require an encrypted connection; the send fails if the server lacks STARTTLS
|
|
# tls_skip_verify: false # true accepts a certificate that cannot be verified (self-signed, private CA),
|
|
# # for a mail server you host yourself. The link stays encrypted but the server
|
|
# # is not checked, so use it only on a network you trust.
|
|
|
|
# User accounts: sign-in for the web app and the mobile app. Off by default; with it off
|
|
# no account route is served. Mode local sends mail through the mail block above.
|
|
# Mailed links use the server's public address: DOMAIN from the environment (WEB_DOMAIN when the
|
|
# web app is on another host). Accounts need it set.
|
|
#accounts:
|
|
# mode: off # off, or local for sign-up with username, email and password
|
|
# registration: open # open: anyone can sign up. closed: no new sign-ups, existing users still sign in
|
|
|
|
# Alerts on Atlas radios (gone quiet, low battery, reboots and more). Both channels need accounts;
|
|
# each user picks which ones reach them.
|
|
alerts:
|
|
email:
|
|
# Send alerts by email. Needs accounts.mode: local and the top-level mail block.
|
|
enabled: false
|
|
push:
|
|
# Send alerts as push notifications to the Beacon app.
|
|
enabled: false
|
|
# Your Push ID, from registering this server at https://push.meshcorebeacon.ca/register.
|
|
# The matching Push secret goes in BEACON_PUSH_SECRET in .env, never here.
|
|
id: ""
|
|
# The push server. You must use the official MeshCore Beacon push server:
|
|
# the Beacon app only receives notifications sent through it. Only change
|
|
# this if the project announces a new address.
|
|
server: https://push.meshcorebeacon.ca
|