2024-03-11 16:34:37 +08:00
|
|
|
[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 }}
|
2024-03-11 16:34:37 +08:00
|
|
|
{{ end }}{{ end }}
|