Skip to content

Commit

Permalink
MessageControl: Add python based config template
Browse files Browse the repository at this point in the history
  • Loading branch information
bramoosterhuis committed Oct 14, 2022
1 parent bc34089 commit d494fe0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions MessageControl/MessageControl.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
autostart = "@PLUGIN_MESSAGECONTROL_AUTOSTART@"

configuration = JSON()

if boolean("@PLUGIN_MESSAGECONTROL_CONSOLE@"):
configuration.add("console", "@PLUGIN_MESSAGECONTROL_CONSOLE@")

if boolean("@PLUGIN_MESSAGECONTROL_SYSLOG@"):
configuration.add("syslog", "@PLUGIN_MESSAGECONTROL_SYSLOG@")

if boolean("@PLUGIN_MESSAGECONTROL_FILENAME@"):
configuration.add("filepath", "@PLUGIN_MESSAGECONTROL_FILENAME@")

if boolean("@PLUGIN_MESSAGECONTROL_ABBREVIATED@"):
configuration.add("abbreviated", "@PLUGIN_MESSAGECONTROL_ABBREVIATED@")

configuration.add("maxexportconnections", "@PLUGIN_MESSAGECONTROL_MAX_EXPORTCONNECTIONS@")

if boolean("@PLUGIN_MESSAGECONTROL_REMOTE@"):
remote = JSON()
remote.add("port", "@PLUGIN_MESSAGECONTROL_PORT@")
remote.add("binding", "@PLUGIN_MESSAGECONTROL_BINDING@")
configuration.add("remote", remote)

0 comments on commit d494fe0

Please sign in to comment.