nodebb-plugin-session-sharing icon indicating copy to clipboard operation
nodebb-plugin-session-sharing copied to clipboard

Configure using JSON file instead of UI

Open cosmotek opened this issue 1 year ago • 2 comments

Is there any way to configure this plugin using JSON files instead of the UI? I am running NodeBB using Docker, and would love to have the config set up right off the bat for local development, instead of having to spin up the server and manually configure via UI.

cosmotek avatar Feb 15 '24 18:02 cosmotek

Ideally this config is just picked up using ENV vars or by sharing a volume that contains the config file.

cosmotek avatar Feb 15 '24 18:02 cosmotek

Hi @cosmotek Unfortunately this isn't supported today as there simply wasn't the need to support that when this plugin was built.

There are no plugin-specific facilities to support this in core, so any configuration done for this plugin would have to be bespoke for this plugin. Not necessarily a bad thing, mind you, just what it is.

Open to PRs for that sort of thing.

julianlam avatar Feb 20 '24 16:02 julianlam