ryanblenis / MeshCentral-RoutePlus

Port routing plugin for the MeshCentral project
Apache License 2.0
30 stars 5 forks source link

How to enable plugins #1

Closed MordyT closed 4 years ago

MordyT commented 4 years ago

I've read that I need to add this to my config.json

"plugins": { enabled: true },

Every time I do, at the same level as settings or domains, MC crashes on service reload.

If I mod it to be: "plugins": { "enabled": true },

MC starts and complains about an unknown config option.

Can you provide a screenshot showing where it should be added? Latest version of MC (0.4.6-u).

ryanblenis commented 4 years ago

Hi @MordyT,

If you're adding it at the bottom of your config, you'll want to remove the trailing comma (the last element in valid JSON does not have a trailing comma).

See below for valid examples:

Beginning / middle:

Screen Shot 2019-12-31 at 5 02 46 PM

End:

Screen Shot 2019-12-31 at 5 03 31 PM

Both of these are just examples depending on where you're attempting to add it (beginning or end). You should not add both. Only one instance is required.

MordyT commented 4 years ago

Hey! Got it working.

Your readme needs to be edited so it's "enabled": instead of enabled: (it's currently missing the " around enabled).

Thanks for the quick replies.