69 lines
1.7 KiB
XML
69 lines
1.7 KiB
XML
<!--
|
|
See the example TOML for detailed comments and explanations.
|
|
-->
|
|
<config defaultUser="default_user"
|
|
oneTun="true"
|
|
cacheDb="/var/cache/gobroke.db">
|
|
<cachePerms>
|
|
<file user=""
|
|
group=""
|
|
mode="384"/>
|
|
<dir user=""
|
|
group=""
|
|
mode="448"/>
|
|
</cachePerms>
|
|
<tunnels>
|
|
<tunnel id="123"
|
|
addr="203.0.113.1"
|
|
mtu="1450"
|
|
username="specific_user"
|
|
key="abcdef">
|
|
<config>
|
|
<tpl tpl="/etc/gobroke/tpl/dnsmasq/ra_dhcpv6.conf.tpl"
|
|
dest="/etc/dnsmasq.d/ra_dhcpv6.conf">
|
|
<perms>
|
|
<file user=""
|
|
group=""
|
|
mode="384"/>
|
|
<dir user=""
|
|
group=""
|
|
mode="448"/>
|
|
</perms>
|
|
<cmds>
|
|
<cmd bin="/usr/local/bin/somecmd"
|
|
isol8Env="false"
|
|
onChange="true"
|
|
isTpl="false">
|
|
<args>
|
|
<arg>-f</arg>
|
|
<arg>foo</arg>
|
|
</args>
|
|
<envs>
|
|
<env>SOMEENV=SOMEVAL</env>
|
|
</envs>
|
|
</cmd>
|
|
</cmds>
|
|
</tpl>
|
|
<tpl tpl="/etc/gobroke/tpl/stat.tpl"
|
|
dest="/tmp/gobroke.dump"/>
|
|
</config>
|
|
<commands>
|
|
<cmd bin="systemctl"
|
|
onChange="true">
|
|
<args>
|
|
<arg>restart</arg>
|
|
<arg>someservice</arg>
|
|
</args>
|
|
</cmd>
|
|
</commands>
|
|
</tunnel>
|
|
<tunnel id="456"
|
|
mtu="1480"
|
|
username="specific_user"
|
|
key="defghi"/>
|
|
</tunnels>
|
|
<commands>
|
|
<cmd bin="/usr/local/bin/alltunsprogram" isol8Env="false"/>
|
|
</commands>
|
|
</config>
|