Generalize the "LetsMesh" broker support into a "Load Preset" feature. - #51
Merged
Merged
Conversation
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.
Merged
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.