:toda:
This commit is contained in:
13
template/conf/wg.client.conf
Normal file
13
template/conf/wg.client.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
[Interface]
|
||||
PrivateKey = {{ .PrivateKey|html }}
|
||||
Address = {{ .IpAllocation|html }}
|
||||
{{ if .DNS }}DNS = {{ .DNS|html }}
|
||||
MTU = {{ .MTU }}
|
||||
{{ else }}MTU = {{ .MTU }}{{ end }}
|
||||
|
||||
[Peer]
|
||||
PublicKey = {{ .PublicKey|html }}
|
||||
PresharedKey = {{ .PresharedKey|html }}
|
||||
AllowedIPs = {{ .AllowedIPS|html }}
|
||||
Endpoint = {{ .Endpoint|html }}:{{ .ListenPort|html }}
|
||||
PersistentKeepalive = {{ .PersistentKeepalive|html }}
|
24
template/conf/wg.conf
Normal file
24
template/conf/wg.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
[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 }}
|
||||
{{ if .Endpoint }}Endpoint = {{ .Endpoint|html }}{{ end }}
|
||||
{{ end }}{{ end }}
|
Reference in New Issue
Block a user