wireguard-dashboard/template/wg.conf

25 lines
783 B
Plaintext
Raw Normal View History

[Interface]
Address = {{ .Server.Address|html }}
ListenPort = {{ .Server.ListenPort|html }}
PrivateKey = {{ .Server.PrivateKey|html }}
MTU = {{ .Server.MTU|html }}
PostUp = {{ .Server.PostUp|html }}
PreDown = {{ .Server.PreDown|html }}
PostDown = {{ .Server.PostDown|html }}
Table = {{ .Server.Table|html }}
{{ range .Clients }}{{ if eq .Enabled true }}
# ID: {{ .ID|html }}
# Name: {{ .Name|html }}
# Emil: {{ .Email|html }}
# CreatedAt: {{ .CreatedAt|html }}
# UpdatedAt: {{ .UpdatedAt|html }}
# CreateUser: {{ .CreateUser|html }}
[Peer]
PublicKey = {{ .PublicKey|html }}
PresharedKey = {{ .PresharedKey|html }}
AllowedIPs = {{ .AllowedIPS|html }}
PersistentKeepalive = {{ .PersistentKeepalive|html }}
2024-03-13 17:30:39 +08:00
{{ if .Endpoint }}Endpoint = {{ .Endpoint|html }}{{ end }}
{{ end }}{{ end }}