🙈释放.conf文件推送,只屏蔽指定文件即可

This commit is contained in:
coward 2024-03-11 16:34:37 +08:00
parent 65866c9398
commit ffb3b69114
2 changed files with 26 additions and 1 deletions

3
.gitignore vendored
View File

@ -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
View 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 }}