element-hq / element-desktop

A glossy Matrix collaboration client for desktop.
https://element.io
GNU Affero General Public License v3.0
1.14k stars 262 forks source link

Add a config flag for ED to customize the location of config.json #1897

Open pmaier1 opened 2 weeks ago

pmaier1 commented 2 weeks ago

Your use case

What would you like to do?

Add a config flag for ED to customize the location of config.json such that it can point to the one exposed by ESS. This way the admin can live edit it using e.g., admin console or other hooks. Customer admins can set the flag via their ED installer (e.g., MSI).

Why would you like to do it?

How would you like to achieve it?

The idea is that there would be something like a build flag (e.g., in MSI for Windows) such that administrators can roll out ED with a pre-configured location for config.json. This way we imagine that changes in ESS will automatically propagate to ED instances.

@daniellekirkwood @langleyd

Have you considered any alternatives?

No response

Additional context

No response

t3chguy commented 2 weeks ago

By location do you mean system file path or do you mean web URL? If the latter we'd need designs for the state for when the config cannot be loaded. I guess we'd need that if the config file was missing on the filesystem too.

Related https://github.com/element-hq/element-desktop/issues/731 Related https://github.com/element-hq/element-web/issues/13678