Skip to content

Commit

Permalink
docs: port is needed for wireguard endpoint
Browse files Browse the repository at this point in the history
Example of `wireguard.peers[].endpoint` is wrong

Signed-off-by: budimanjojo <budimanjojo@gmail.com>
Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
budimanjojo authored and frezbo committed Feb 13, 2023
1 parent 1e1aa84 commit 34ab000
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/machinery/config/types/v1alpha1/v1alpha1_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ var (
WireguardPeers: []*DeviceWireguardPeer{
{
WireguardPublicKey: "ABCDEF...",
WireguardEndpoint: "192.168.1.2",
WireguardEndpoint: "192.168.1.2:51822",
WireguardPersistentKeepaliveInterval: time.Second * 10,
WireguardAllowedIPs: []string{"192.168.1.0/24"},
},
Expand Down
12 changes: 6 additions & 6 deletions website/content/v1.4/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ network:
# # Specifies a list of peer configurations to apply to a device.
# peers:
# - publicKey: ABCDEF... # Specifies the public key of this peer.
# endpoint: 192.168.1.2 # Specifies the endpoint of this peer entry.
# endpoint: 192.168.1.2:51822 # Specifies the endpoint of this peer entry.
# persistentKeepaliveInterval: 10s # Specifies the persistent keepalive interval for this peer.
# # AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
# allowedIPs:
Expand Down Expand Up @@ -915,7 +915,7 @@ interfaces:
# # Specifies a list of peer configurations to apply to a device.
# peers:
# - publicKey: ABCDEF... # Specifies the public key of this peer.
# endpoint: 192.168.1.2 # Specifies the endpoint of this peer entry.
# endpoint: 192.168.1.2:51822 # Specifies the endpoint of this peer entry.
# persistentKeepaliveInterval: 10s # Specifies the persistent keepalive interval for this peer.
# # AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
# allowedIPs:
Expand Down Expand Up @@ -1016,7 +1016,7 @@ interfaces:
# # Specifies a list of peer configurations to apply to a device.
# peers:
# - publicKey: ABCDEF... # Specifies the public key of this peer.
# endpoint: 192.168.1.2 # Specifies the endpoint of this peer entry.
# endpoint: 192.168.1.2:51822 # Specifies the endpoint of this peer entry.
# persistentKeepaliveInterval: 10s # Specifies the persistent keepalive interval for this peer.
# # AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
# allowedIPs:
Expand Down Expand Up @@ -2014,7 +2014,7 @@ Appears in:
# # Specifies a list of peer configurations to apply to a device.
# peers:
# - publicKey: ABCDEF... # Specifies the public key of this peer.
# endpoint: 192.168.1.2 # Specifies the endpoint of this peer entry.
# endpoint: 192.168.1.2:51822 # Specifies the endpoint of this peer entry.
# persistentKeepaliveInterval: 10s # Specifies the persistent keepalive interval for this peer.
# # AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
# allowedIPs:
Expand Down Expand Up @@ -2100,7 +2100,7 @@ wireguard:
# Specifies a list of peer configurations to apply to a device.
peers:
- publicKey: ABCDEF... # Specifies the public key of this peer.
endpoint: 192.168.1.2 # Specifies the endpoint of this peer entry.
endpoint: 192.168.1.2:51822 # Specifies the endpoint of this peer entry.
persistentKeepaliveInterval: 10s # Specifies the persistent keepalive interval for this peer.
# AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
allowedIPs:
Expand Down Expand Up @@ -2165,7 +2165,7 @@ privateKey: ABCDEF... # Specifies a private key configuration (base64 encoded).
# Specifies a list of peer configurations to apply to a device.
peers:
- publicKey: ABCDEF... # Specifies the public key of this peer.
endpoint: 192.168.1.2 # Specifies the endpoint of this peer entry.
endpoint: 192.168.1.2:51822 # Specifies the endpoint of this peer entry.
persistentKeepaliveInterval: 10s # Specifies the persistent keepalive interval for this peer.
# AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
allowedIPs:
Expand Down

0 comments on commit 34ab000

Please sign in to comment.