mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-27 05:06:02 +08:00
fix example configuration file
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
domain: 0l.de
|
|
||||||
watch_interval: 1s
|
watch_interval: 1s
|
||||||
community: "some-common-password"
|
community: "some-common-password"
|
||||||
|
|
||||||
@@ -7,12 +6,7 @@ backends:
|
|||||||
- k8s:///path/to/your/kubeconfig.yaml?namespace=default
|
- k8s:///path/to/your/kubeconfig.yaml?namespace=default
|
||||||
|
|
||||||
# WireGuard settings
|
# WireGuard settings
|
||||||
wireguard:
|
wireguard:
|
||||||
# Use wg / wg-quick configuration files
|
|
||||||
config:
|
|
||||||
path: /etc/wireguard
|
|
||||||
sync: false
|
|
||||||
|
|
||||||
# Create WireGuard interfaces using bundled wireguard-go Userspace implementation
|
# Create WireGuard interfaces using bundled wireguard-go Userspace implementation
|
||||||
# This will be the default if there is no WireGuard kernel module present.
|
# This will be the default if there is no WireGuard kernel module present.
|
||||||
userspace: false
|
userspace: false
|
||||||
@@ -38,21 +32,29 @@ socket:
|
|||||||
# Mostly useful for testing automation
|
# Mostly useful for testing automation
|
||||||
wait: false
|
wait: false
|
||||||
|
|
||||||
|
# Synchronize WireGuard interface configurations with wg(8) config-files.
|
||||||
|
config_sync:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Directory where Wireguard configuration files are located.
|
||||||
|
# We expect the same format as used by wg(8) and wg-quick(8).
|
||||||
|
# Filenames must match the interface name with a '.conf' suffix.
|
||||||
|
path: /etc/wireguard
|
||||||
|
|
||||||
|
# Watch the configuration files for changes and apply them accordingly.
|
||||||
|
watch: false
|
||||||
|
|
||||||
|
# Synchronize WireGuard AllowedIPs with Kernel routing table
|
||||||
route_sync:
|
route_sync:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
table: main
|
table: main
|
||||||
|
|
||||||
config_sync:
|
# Discover the WireGuard endpoint of peers
|
||||||
enabled: true
|
|
||||||
|
|
||||||
watch: true
|
|
||||||
|
|
||||||
# Endpoint Discovery
|
|
||||||
endpoint_disc:
|
endpoint_disc:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# Interactive Connectivity Establishment
|
# Interactive Connectivity Establishment parameters
|
||||||
ice:
|
ice:
|
||||||
# A list of STUN and TURN servers used by ICE
|
# A list of STUN and TURN servers used by ICE
|
||||||
urls:
|
urls:
|
||||||
@@ -67,7 +69,7 @@ endpoint_disc:
|
|||||||
insecure_skip_verify: false
|
insecure_skip_verify: false
|
||||||
|
|
||||||
# Limit available network and candidate types
|
# Limit available network and candidate types
|
||||||
network-types: [udp4, udp6, tcp4, tcp6]
|
network_types: [udp4, udp6, tcp4, tcp6]
|
||||||
candidate_types: [host, srflx, prflx ,relay]
|
candidate_types: [host, srflx, prflx ,relay]
|
||||||
|
|
||||||
# Regular expression whitelist of interfaces which are used to gather ICE candidates.
|
# Regular expression whitelist of interfaces which are used to gather ICE candidates.
|
||||||
|
@@ -262,7 +262,7 @@ var _ = Describe("dump", func() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
var _ = It("can parse the default config file", func() {
|
var _ = It("can parse the example config file", func() {
|
||||||
_, err := config.ParseArgs("--config", "../../etc/wice.yaml")
|
_, err := config.ParseArgs("--config", "../../etc/wice.yaml")
|
||||||
Expect(err).To(Succeed())
|
Expect(err).To(Succeed())
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user