wireguard-dashboard/template/conf/wg.conf

26 lines
824 B
Plaintext
Raw Permalink Normal View History

2024-07-05 14:41:35 +08:00
[Interface]
2024-08-20 14:24:13 +08:00
Address = {{ sliceToStr .Server.Address |html }}
2024-07-05 14:41:35 +08:00
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 }}
2024-08-12 16:52:28 +08:00
# SyncAt: {{ .SyncAt|html }}
2024-07-05 14:41:35 +08:00
[Peer]
PublicKey = {{ .PublicKey|html }}
PresharedKey = {{ .PresharedKey|html }}
AllowedIPs = {{ .AllowedIPS|html }}
PersistentKeepalive = {{ .PersistentKeepalive|html }}
{{ if .Endpoint }}Endpoint = {{ .Endpoint|html }}{{ end }}
{{ end }}{{ end }}