From 55cd21a50cf9a8fa8b03300082575c9f0b3a1e65 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Mon, 15 Jul 2024 22:47:01 +0200 Subject: [PATCH] style: improve rendered template presentation --- app/letsencrypt_service_data.tmpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/letsencrypt_service_data.tmpl b/app/letsencrypt_service_data.tmpl index f026d99..4a66960 100644 --- a/app/letsencrypt_service_data.tmpl +++ b/app/letsencrypt_service_data.tmpl @@ -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 }}"