wireguard-dashboard/template/wg.conf
2024-03-07 17:32:38 +08:00

18 lines
512 B
Plaintext

[Interface]
Address = {{ .Server.Address }}
ListenPort = {{ .Server.ListenPort }}
PrivateKey = {{ .Server.PrivateKey }}
MTU = {{ .Server.MTU }}
PostUp = {{ .Server.PostUp }}
PreDown = {{ .Server.PreDown }}
PostDown = {{ .Server.PostDown }}
Table = {{ .Server.Table }}
{{ range .Clients }}
[Peer]
PublicKey = {{ .Client.PublicKey }}
PresharedKey = {{ .Client.PresharedKey }}
AllowedIPs = {{ .Client.AllowedIPs }}
PersistentKeepalive = {{ .Client.PersistentKeepalive }}
Endpoint = {{ .Client.Endpoint }}
{{ end }}