Skip to content

Generalize the "LetsMesh" broker support into a "Load Preset" feature. - #51

Merged
Cisien merged 2 commits into
mainfrom
cisien/broker-presets
Apr 26, 2026
Merged

Cisien merged 2 commits into
mainfrom
cisien/broker-presets

Conversation

@Cisien

@Cisien Cisien commented Apr 26, 2026

Copy link
Copy Markdown
Owner

During install or update, the user is prompted if they want to install a preset. This commit includes one preset, LetsMesh, but the community may contribute any number.

This change moves the user.toml from a 00- prefix to a 99- prefix so its loaded after most configs, allowing overrides such as owner info for brokers to be added in this file instead of in the static presets.

The behavior of "just press enter and you'll be set up on LetsMesh" was preserved.

Chris added 2 commits April 26, 2026 11:18
During install or update, the user is prompted if they want to install a preset. This commit includes one preset, LetsMesh, but the community may contribute any number.

This change moves the user.toml from a 00- prefix to a 99- prefix so its loaded after most configs, allowing overrides such as owner info for brokers to be added in this file instead of in the static presets.

The behaviro of "just press enter and you'll be set up on LetsMesh" was preserved.
@Cisien
Cisien merged commit 618d2a7 into main Apr 26, 2026
1 check passed
Treehouse-00 added a commit to Treehouse-00/meshcoretomqtt that referenced this pull request May 2, 2026
Adds presets/waev.toml mirroring the LetsMesh preset shape: token (Ed25519
JWT) auth over MQTT-over-WebSockets on port 443 with TLS verify on, two
[[broker]] blocks for the active-active mqtt-a.waev.app and mqtt-b.waev.app
endpoints, and audience set to each broker's hostname.

Per the preset model introduced in PR Cisien#51, the file omits user-specific
fields (owner, email, iata, serial, etc.) — those are written to
99-user.toml by the installer's prompt flow when a token preset is
selected.

Validated against:
  - tomllib.load
  - installer.config.validate_preset_toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant