Path: redb/redb.Templates/templates/route-xml/redb-route-mqtt/config/context.sample.json Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/route-xml/redb-route-mqtt/config/context.sample.json ---- { "//": [ "Deployment sample: copy it as context.json next to the package on the host. Never put real secrets here.", "The merged configuration, later layers win:", " 1. host appsettings, Contexts default section", " 2. host appsettings, this context's section", " 3. this file: Contexts.default, then Contexts.modulectx", " 4. in-package config/routemodule.config.json: ContextName and AutoStart only", " 5. Override: environment variables (secrets live here)", "Every {{key}} without a {{key:default}} in the XML must get a value from one of these layers:", "the built package lists them in manifest.json under RequiredConfigKeys, and the module stops at init when one is missing.", "mqtt.username and mqtt.password are such keys; the password goes through the environment." ], "Contexts": { "default": {}, "modulectx": { "mqtt.host": "localhost", "mqtt.port": "1883", "mqtt.username": "modulectx", "sensors.period": "5000", "humidity.period": "7000" } } }