# AUTOGENERATED FILE - DO NOT EDIT # This file uses wg-quick format. See https://man7.org/linux/man-pages/man8/wg-quick.8.html#CONFIGURATION # -WGP- WIREGUARD PORTAL CONFIGURATION FILE, version {{ .Portal.Version }} # Lines starting with the -WGP- tag are used by the WireGuard Portal configuration parser. [Interface] # -WGP- Peer: {{.Peer.Identifier}} | Updated: {{.Peer.UpdatedAt}} | Created: {{.Peer.CreatedAt}} # -WGP- Display name: {{ .Peer.DisplayName }} # -WGP- PublicKey: {{ .Peer.KeyPair.PublicKey }} {{- if eq .Peer.Interface.Type "server"}} # -WGP- Peer type: client {{else}} # -WGP- Peer type: server {{- end}} # Core settings PrivateKey = {{ .Peer.KeyPair.PrivateKey }} Address = {{ .Peer.Interface.AddressStr }} # Misc. settings (optional) {{- if .Peer.Interface.DnsStr.GetValue}} DNS = {{ .Peer.Interface.DnsStr.GetValue }} {{- end}} {{- if ne .Peer.Interface.Mtu.GetValue 0}} MTU = {{ .Peer.Interface.Mtu.GetValue }} {{- end}} {{- if ne .Peer.Interface.FirewallMark.GetValue 0}} FwMark = {{ .Peer.Interface.FirewallMark.GetValue }} {{- end}} {{- if ne .Peer.Interface.RoutingTable.GetValue ""}} Table = {{ .Peer.Interface.RoutingTable.GetValue }} {{- end}} # Interface hooks (optional) {{- if .Peer.Interface.PreUp.GetValue}} PreUp = {{ .Peer.Interface.PreUp.GetValue }} {{- end}} {{- if .Peer.Interface.PostUp.GetValue}} PostUp = {{ .Peer.Interface.PostUp.GetValue }} {{- end}} {{- if .Peer.Interface.PreDown.GetValue}} PreDown = {{ .Peer.Interface.PreDown.GetValue }} {{- end}} {{- if .Peer.Interface.PostDown.GetValue}} PostDown = {{ .Peer.Interface.PostDown.GetValue }} {{- end}} [Peer] PublicKey = {{ .Peer.Interface.PublicKey }} Endpoint = {{ .Peer.Endpoint.GetValue }} {{- if .Peer.AllowedIPsStr.GetValue}} AllowedIPs = {{ .Peer.AllowedIPsStr.GetValue }} {{- end}} {{- if .Peer.PresharedKey}} PresharedKey = {{ .Peer.PresharedKey }} {{- end}} {{- if ne .Peer.PersistentKeepalive.GetValue 0}} PersistentKeepalive = {{ .Peer.PersistentKeepalive.GetValue }} {{- end}}