diff --git a/app/letsencrypt_service_data.tmpl b/app/letsencrypt_service_data.tmpl index 014d55a..c5faf40 100644 --- a/app/letsencrypt_service_data.tmpl +++ b/app/letsencrypt_service_data.tmpl @@ -79,7 +79,7 @@ LETSENCRYPT_CONTAINERS=( {{ else }} {{/* Default: multi-domain (SAN) certificate */}} {{- "\n" }}LETSENCRYPT_{{ $cid }}_HOST=( - {{- range $i, $host := split $hosts "," }} + {{- range $host := split $hosts "," }} {{- $host := trim $host }} {{- $host := trimSuffix "." $host }} {{- "\n\t" }}'{{ $host }}'