mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-26 08:53:52 +01:00
style: improve rendered template presentation
This commit is contained in:
parent
4137f4daab
commit
55cd21a50c
@ -8,11 +8,11 @@ LETSENCRYPT_CONTAINERS=(
|
||||
{{/* Explicit per-domain splitting of the certificate */}}
|
||||
{{ range $host := split $container.Env.LETSENCRYPT_HOST "," }}
|
||||
{{ $host := trim $host }}
|
||||
{{- "\n " }}'{{ printf "%.12s" $container.ID }}_{{ sha1 $host }}' # {{ $container.Name }}, created at {{ $container.Created }}
|
||||
{{- "\n\t" }}'{{ printf "%.12s" $container.ID }}_{{ sha1 $host }}' # {{ $container.Name }}, created at {{ $container.Created }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{/* Default: multi-domain (SAN) certificate */}}
|
||||
{{- "\n " }}'{{ printf "%.12s" $container.ID }}' # {{ $container.Name }}, created at {{ $container.Created }}
|
||||
{{- "\n\t" }}'{{ printf "%.12s" $container.ID }}' # {{ $container.Name }}, created at {{ $container.Created }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@ -59,12 +59,12 @@ LETSENCRYPT_CONTAINERS=(
|
||||
{{ else }}
|
||||
{{/* Default: multi-domain (SAN) certificate */}}
|
||||
{{- "\n" }}LETSENCRYPT_{{ $cid }}_HOST=(
|
||||
{{- range $host := split $hosts "," }}
|
||||
{{- range $i, $host := split $hosts "," }}
|
||||
{{- $host := trim $host }}
|
||||
{{- $host := trimSuffix "." $host -}}
|
||||
'{{ $host }}'{{ " " }}
|
||||
{{- end -}}
|
||||
)
|
||||
{{- $host := trimSuffix "." $host }}
|
||||
{{- "\n\t" }}'{{ $host }}'
|
||||
{{- end }}
|
||||
{{- "\n" }})
|
||||
{{- "\n" }}LETSENCRYPT_{{ $cid }}_KEYSIZE="{{ $KEYSIZE }}"
|
||||
{{- "\n" }}LETSENCRYPT_{{ $cid }}_TEST="{{ $STAGING }}"
|
||||
{{- "\n" }}LETSENCRYPT_{{ $cid }}_EMAIL="{{ $EMAIL }}"
|
||||
|
Loading…
Reference in New Issue
Block a user