Plugins should be easy to add, decoupled, and configurable, using a standard spec, as defined by the software creator.
In this case, we keep plugins in any directory on the host, using an environment variable. This could point to say, ~/.myapp/plugins
for example. And within that, each plugin has a folder, with a config.json
file (or whatever, really, this is just an example) that houses the config. If the config is not there, then it won't load.