mirror of
https://github.com/DJSundog/wg-portal.git
synced 2024-11-23 07:03:50 -05:00
fix newlines in template
This commit is contained in:
parent
793c2fc27e
commit
814f57d357
@ -8,7 +8,7 @@ PrivateKey = {{ .Client.PrivateKey }}
|
|||||||
{{if .Server.DNSStr -}}
|
{{if .Server.DNSStr -}}
|
||||||
DNS = {{ .Server.DNSStr }}
|
DNS = {{ .Server.DNSStr }}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{- if ne .Server.Mtu 0 -}}
|
{{- if ne .Server.Mtu 0}}
|
||||||
MTU = {{.Server.Mtu}}
|
MTU = {{.Server.Mtu}}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
@ -31,9 +31,9 @@ Address = {{ . }}
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
ListenPort = {{ .Server.ListenPort }}
|
ListenPort = {{ .Server.ListenPort }}
|
||||||
PrivateKey = {{ .Server.PrivateKey }}
|
PrivateKey = {{ .Server.PrivateKey }}
|
||||||
{{- if ne .Server.Mtu 0 -}}
|
{{- if ne .Server.Mtu 0}}
|
||||||
MTU = {{.Server.Mtu}}
|
MTU = {{.Server.Mtu}}
|
||||||
{{- end -}}
|
{{- end}}
|
||||||
PreUp = {{ .Server.PreUp }}
|
PreUp = {{ .Server.PreUp }}
|
||||||
PostUp = {{ .Server.PostUp }}
|
PostUp = {{ .Server.PostUp }}
|
||||||
PreDown = {{ .Server.PreDown }}
|
PreDown = {{ .Server.PreDown }}
|
||||||
@ -44,9 +44,9 @@ PostDown = {{ .Server.PostDown }}
|
|||||||
# {{.Identifier}} / {{.Email}} / Updated: {{.UpdatedAt}} / Created: {{.CreatedAt}}
|
# {{.Identifier}} / {{.Email}} / Updated: {{.UpdatedAt}} / Created: {{.CreatedAt}}
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = {{ .PublicKey }}
|
PublicKey = {{ .PublicKey }}
|
||||||
{{- if .PresharedKey -}}
|
{{- if .PresharedKey}}
|
||||||
PresharedKey = {{ .PresharedKey }}
|
PresharedKey = {{ .PresharedKey }}
|
||||||
{{- end -}}
|
{{- end}}
|
||||||
AllowedIPs = {{ StringsJoin .IPs ", " }}
|
AllowedIPs = {{ StringsJoin .IPs ", " }}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{end}}`
|
{{end}}`
|
||||||
|
Loading…
Reference in New Issue
Block a user