wireguard-dashboard/template/wg.client.conf

15 lines
399 B
Plaintext
Raw Normal View History

2024-03-13 17:30:39 +08:00
[Interface]
PrivateKey = {{ .PrivateKey|html }}
Address = {{ .IpAllocation|html }}
2024-06-06 17:02:45 +08:00
{{ if .DNS }}DNS = {{ .DNS|html }}
2024-03-13 17:30:39 +08:00
MTU = {{ .MTU }}
2024-06-06 17:02:45 +08:00
{{ else }}MTU = {{ .MTU }}{{ end }}
2024-03-13 17:30:39 +08:00
[Peer]
PublicKey = {{ .PublicKey|html }}
PresharedKey = {{ .PresharedKey|html }}
AllowedIPs = {{ .AllowedIPS|html }}
Endpoint = {{ .Endpoint|html }}:{{ .ListenPort|html }}
PersistentKeepalive = {{ .PersistentKeepalive|html }}