Repository navigation
Expand file tree
/
Copy pathenv.example
More file actions
74 lines (58 loc) · 3.33 KB
/
Copy pathenv.example
File metadata and controls
74 lines (58 loc) · 3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Local development starter. Every variable is documented at
# https://github.com/MeshCore-Beacon/beacon-docs/blob/main/docs/configuration.md
LISTEN_ADDR=:8080
# Path to the YAML config (default: config.yaml).
# CONFIG_PATH=config.yaml
# Optional admin bearer key, at least 16 characters with no whitespace.
# If set, overrides auth.api_key (even when empty).
# BEACON_API_KEY=
# Regional or grouped-region API key generated by your local MeshMapper admin.
# A grouped-region key covers multiple regions. Never use the mobile App key.
# Overrides meshmapper.api_key, even when empty. Required for enabled imports.
# Keep this in the deployment environment when using saved-config backups.
# MESHMAPPER_API_KEY=
# Optional application logging overrides (defaults: info / text).
# LOG_LEVEL=info
# LOG_FORMAT=json
# The server's public host, the one observers and browsers reach it at. The Docker stacks already set it for
# the proxy. Needed for accounts (mailed links) and polling.foreign_claims. WEB_DOMAIN is the web app's host
# when it is not the same one.
# DOMAIN=beacon.example.com
# WEB_DOMAIN=
POSTGRES_DSN=postgres://beacon:beacon@localhost:5432/beacon?sslmode=disable
# Redis (optional; leave REDIS_ADDR unset to disable caching)
REDIS_ADDR=localhost:6379
REDIS_PASSWORD=
REDIS_DB=0
MQTT_BROKER_1_URL=wss://mqtt1.meshcore.ca:443
MQTT_BROKER_1_USERNAME=
MQTT_BROKER_1_PASSWORD=
MQTT_BROKER_2_URL=wss://mqtt2.meshcore.ca:443
MQTT_BROKER_2_USERNAME=
MQTT_BROKER_2_PASSWORD=
# A name for each broker, shown on packets and observers instead of mqtt1 / mqtt2: 1 to 64 characters of a-z, 0-9,
# _ or -, and the two must differ. Data received before a change keeps the name it was stored under.
# MQTT_BROKER_1_NAME=mqtt1
# MQTT_BROKER_2_NAME=mqtt2
# Set for a broker that is a rebroadcaster: it forwards messages from other MeshCore brokers and tags each one
# with the broker it originally came from. Beacon then connects with MQTT 5 and reads the tags.
# observers -> MeshCore broker -> rebroadcaster <- Beacon subscribes here
# The rebroadcaster must leave topic and payload unchanged and set two MQTT 5 user properties on every message:
# source-broker short name of the source broker: a-z, 0-9, _ or -, up to 64 characters (e.g. letsmesh)
# source-host host the message arrived on, lowercase, no port (e.g. mqtt.meshmapper.net)
# Only the rebroadcaster should be able to publish to it, or anyone could set the tags. A message without them
# is still accepted and shows this connection's own name.
# Leave unset for a MeshCore broker that observers publish to directly.
# MQTT_BROKER_1_REBROADCAST=true
# MQTT_BROKER_2_REBROADCAST=true
# Optional private CPU captures. Set both; the deadline must be within 72 hours.
# BEACON_CPU_PROFILE_DIR=/profiles
# BEACON_CPU_PROFILE_UNTIL=2026-10-02T12:00:00Z
# SMTP password for the mail block in config.yaml (account mail and email alerts). Never put it in the YAML.
# BEACON_SMTP_PASSWORD=
# Push secret for alert push notifications (alerts.push in config.yaml). You get it, with the Push ID, when you
# register this server at https://push.meshcorebeacon.ca/register. Never put it in the YAML.
# BEACON_PUSH_SECRET=
# Key that seals guest passwords for telemetry requests: 32 random bytes, base64 (openssl rand -base64 32).
# Without it telemetry requests are off. Keep it out of config files and backups.
# BEACON_SECRET_KEY=