1
0

style: improve rendered template presentation

This commit is contained in:
Nicolas Duchon 2024-07-15 22:47:01 +02:00
parent 4137f4daab
commit 55cd21a50c

@ -8,11 +8,11 @@ LETSENCRYPT_CONTAINERS=(
{{/* Explicit per-domain splitting of the certificate */}} {{/* Explicit per-domain splitting of the certificate */}}
{{ range $host := split $container.Env.LETSENCRYPT_HOST "," }} {{ range $host := split $container.Env.LETSENCRYPT_HOST "," }}
{{ $host := trim $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 }} {{ end }}
{{ else }} {{ else }}
{{/* Default: multi-domain (SAN) certificate */}} {{/* 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 }} {{ end }}
{{ end }} {{ end }}
@ -59,12 +59,12 @@ LETSENCRYPT_CONTAINERS=(
{{ else }} {{ else }}
{{/* Default: multi-domain (SAN) certificate */}} {{/* Default: multi-domain (SAN) certificate */}}
{{- "\n" }}LETSENCRYPT_{{ $cid }}_HOST=( {{- "\n" }}LETSENCRYPT_{{ $cid }}_HOST=(
{{- range $host := split $hosts "," }} {{- range $i, $host := split $hosts "," }}
{{- $host := trim $host }} {{- $host := trim $host }}
{{- $host := trimSuffix "." $host -}} {{- $host := trimSuffix "." $host }}
'{{ $host }}'{{ " " }} {{- "\n\t" }}'{{ $host }}'
{{- end -}} {{- end }}
) {{- "\n" }})
{{- "\n" }}LETSENCRYPT_{{ $cid }}_KEYSIZE="{{ $KEYSIZE }}" {{- "\n" }}LETSENCRYPT_{{ $cid }}_KEYSIZE="{{ $KEYSIZE }}"
{{- "\n" }}LETSENCRYPT_{{ $cid }}_TEST="{{ $STAGING }}" {{- "\n" }}LETSENCRYPT_{{ $cid }}_TEST="{{ $STAGING }}"
{{- "\n" }}LETSENCRYPT_{{ $cid }}_EMAIL="{{ $EMAIL }}" {{- "\n" }}LETSENCRYPT_{{ $cid }}_EMAIL="{{ $EMAIL }}"