mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-22 20:42:04 +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 */}}
|
{{/* 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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user