update... work pending
This commit is contained in:
48
_extras/example_configs/uncommented.toml
Normal file
48
_extras/example_configs/uncommented.toml
Normal file
@@ -0,0 +1,48 @@
|
||||
DefaultUsername = 'default_user'
|
||||
Frequency = '5m'
|
||||
SingleTunnel = true
|
||||
[[Tunnel]]
|
||||
TunnelID = 123
|
||||
ExplicitClientIP = '203.0.113.1'
|
||||
MTU = 1450
|
||||
Username = "specific_user"
|
||||
UpdateKey = "abcdef"
|
||||
[[Tunnel.ConfigTemplate]]
|
||||
Template = "/etc/gobroke/tpl/dnsmasq/ra_dhcpv6.conf.tpl"
|
||||
Destination = "/etc/dnsmasq.d/ra_dhcpv6.conf"
|
||||
[[Tunnel.ConfigTemplate.Permissions]]
|
||||
[[Tunnel.ConfigTemplate.Permissions.File]]
|
||||
User = ""
|
||||
Group = ""
|
||||
Mode = 0o0600
|
||||
[[Tunnel.ConfigTemplate.Permissions.Dir]]
|
||||
User = ""
|
||||
Group = ""
|
||||
Mode = 0o0700
|
||||
[[Tunnel.ConfigTemplate.Command]]
|
||||
ProgramPath = '/usr/local/bin/somecmd'
|
||||
Args = [
|
||||
'-f', 'foo',
|
||||
]
|
||||
IsolatedEnv = false
|
||||
EnvVars = [
|
||||
'SOMEENV=SOMEVAL',
|
||||
]
|
||||
OnChange = true
|
||||
IsTemplate = false
|
||||
[[Tunnel.ConfigTemplate]]
|
||||
Template = "/etc/gobroke/tpl/stat.tpl"
|
||||
Destination = "/tmp/gobroke.dump"
|
||||
[[Tunnel.Command]]
|
||||
ProgramPath = 'systemctl'
|
||||
Args = [
|
||||
'restart',
|
||||
'someservice',
|
||||
]
|
||||
OnChange = true
|
||||
[[Tunnel]]
|
||||
TunnelID = 456
|
||||
Username = "specific_user"
|
||||
UpdateKey = "defghi"
|
||||
[[Command]]
|
||||
ProgramPath = "/usr/local/bin/alltunpsrogram"
|
||||
Reference in New Issue
Block a user