🙈释放.conf文件推送,只屏蔽指定文件即可
This commit is contained in:
parent
65866c9398
commit
ffb3b69114
3
.gitignore
vendored
3
.gitignore
vendored
@ -23,6 +23,7 @@ logs
|
|||||||
# Go workspace file
|
# Go workspace file
|
||||||
go.work
|
go.work
|
||||||
wg.db
|
wg.db
|
||||||
|
wg0.conf
|
||||||
*.db
|
*.db
|
||||||
*.yaml
|
*.yaml
|
||||||
*.conf
|
|
||||||
|
24
template/wg.conf
Normal file
24
template/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 }}
|
||||||
|
Endpoint = {{ .Endpoint|html }}
|
||||||
|
{{ end }}{{ end }}
|
Loading…
Reference in New Issue
Block a user