patcon / matterbridge-autoconfig

App that generates a Matterbridge config file based on channel names.
https://matterbridge-autoconfig-g0vtw.herokuapp.com
8 stars 1 forks source link

Create option to merge toml configs instead of templating #7

Open patcon opened 5 years ago

patcon commented 5 years ago

Right now, we search for {{AUTOGENERATED}} string in a static template, and add our dynamic config to that template (if provided).

We could have another option: If the replacement token is not present, assume that we want to parse the toml and merge it with the auto-generated one.

This will allow use to configure gateways that also connect to other teams, or involve bridges that would be too complicated to configure dynamically.

We should rename the TEMPLATE_URL envvar to something appropriately generic, or maybe just have some aliases.