julianlam / nodebb-plugin-session-sharing

Allows login sessions from your app to persist in NodeBB
MIT License
86 stars 66 forks source link

Configure using JSON file instead of UI #135

Open cosmotek opened 5 months ago

cosmotek commented 5 months ago

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 commented 5 months ago

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

julianlam commented 5 months ago

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.