Skip to content

Commit 49c03c9

Browse files
committed
fix: trim whitespaces from environment variables
1 parent 68a792e commit 49c03c9

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

app/letsencrypt_service_data.tmpl

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ LETSENCRYPT_CONTAINERS=(
2525
{{ $host := trimSuffix "." $host }}
2626
{{ $hostHash := sha1 $host }}
2727
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_HOST=('{{ $host }}')
28-
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_KEYSIZE="{{ $container.Env.LETSENCRYPT_KEYSIZE }}"
29-
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_TEST="{{ $container.Env.LETSENCRYPT_TEST }}"
30-
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_EMAIL="{{ $container.Env.LETSENCRYPT_EMAIL }}"
31-
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_CA_URI="{{ $container.Env.ACME_CA_URI }}"
32-
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_PREFERRED_CHAIN="{{ $container.Env.ACME_PREFERRED_CHAIN }}"
33-
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_OCSP="{{ $container.Env.ACME_OCSP }}"
34-
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_EAB_KID="{{ $container.Env.ACME_EAB_KID }}"
35-
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_EAB_HMAC_KEY="{{ $container.Env.ACME_EAB_HMAC_KEY }}"
36-
{{- "\n" }}ZEROSSL_{{ $cid }}_{{ $hostHash }}_API_KEY="{{ $container.Env.ZEROSSL_API_KEY }}"
37-
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_RESTART_CONTAINER="{{ $container.Env.LETSENCRYPT_RESTART_CONTAINER }}"
28+
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_KEYSIZE="{{ (trim $container.Env.LETSENCRYPT_KEYSIZE) }}"
29+
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_TEST="{{ (trim $container.Env.LETSENCRYPT_TEST) }}"
30+
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_EMAIL="{{ (trim $container.Env.LETSENCRYPT_EMAIL) }}"
31+
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_CA_URI="{{ (trim $container.Env.ACME_CA_URI) }}"
32+
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_PREFERRED_CHAIN="{{ (trim $container.Env.ACME_PREFERRED_CHAIN) }}"
33+
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_OCSP="{{ (trim $container.Env.ACME_OCSP) }}"
34+
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_EAB_KID="{{ (trim $container.Env.ACME_EAB_KID) }}"
35+
{{- "\n" }}ACME_{{ $cid }}_{{ $hostHash }}_EAB_HMAC_KEY="{{ (trim $container.Env.ACME_EAB_HMAC_KEY) }}"
36+
{{- "\n" }}ZEROSSL_{{ $cid }}_{{ $hostHash }}_API_KEY="{{ (trim $container.Env.ZEROSSL_API_KEY) }}"
37+
{{- "\n" }}LETSENCRYPT_{{ $cid }}_{{ $hostHash }}_RESTART_CONTAINER="{{ (trim $container.Env.LETSENCRYPT_RESTART_CONTAINER) }}"
3838
{{ end }}
3939
{{ else }}
4040
{{- "\n" }}LETSENCRYPT_{{ $cid }}_HOST=(
@@ -44,16 +44,16 @@ LETSENCRYPT_CONTAINERS=(
4444
'{{ $host }}'{{ " " }}
4545
{{- end -}}
4646
)
47-
{{- "\n" }}LETSENCRYPT_{{ $cid }}_KEYSIZE="{{ $container.Env.LETSENCRYPT_KEYSIZE }}"
48-
{{- "\n" }}LETSENCRYPT_{{ $cid }}_TEST="{{ $container.Env.LETSENCRYPT_TEST }}"
49-
{{- "\n" }}LETSENCRYPT_{{ $cid }}_EMAIL="{{ $container.Env.LETSENCRYPT_EMAIL }}"
50-
{{- "\n" }}ACME_{{ $cid }}_CA_URI="{{ $container.Env.ACME_CA_URI }}"
51-
{{- "\n" }}ACME_{{ $cid }}_PREFERRED_CHAIN="{{ $container.Env.ACME_PREFERRED_CHAIN }}"
52-
{{- "\n" }}ACME_{{ $cid }}_OCSP="{{ $container.Env.ACME_OCSP }}"
53-
{{- "\n" }}ACME_{{ $cid }}_EAB_KID="{{ $container.Env.ACME_EAB_KID }}"
54-
{{- "\n" }}ACME_{{ $cid }}_EAB_HMAC_KEY="{{ $container.Env.ACME_EAB_HMAC_KEY }}"
55-
{{- "\n" }}ZEROSSL_{{ $cid }}_API_KEY="{{ $container.Env.ZEROSSL_API_KEY }}"
56-
{{- "\n" }}LETSENCRYPT_{{ $cid }}_RESTART_CONTAINER="{{ $container.Env.LETSENCRYPT_RESTART_CONTAINER }}"
47+
{{- "\n" }}LETSENCRYPT_{{ $cid }}_KEYSIZE="{{ (trim $container.Env.LETSENCRYPT_KEYSIZE) }}"
48+
{{- "\n" }}LETSENCRYPT_{{ $cid }}_TEST="{{ (trim $container.Env.LETSENCRYPT_TEST) }}"
49+
{{- "\n" }}LETSENCRYPT_{{ $cid }}_EMAIL="{{ (trim $container.Env.LETSENCRYPT_EMAIL) }}"
50+
{{- "\n" }}ACME_{{ $cid }}_CA_URI="{{ (trim $container.Env.ACME_CA_URI) }}"
51+
{{- "\n" }}ACME_{{ $cid }}_PREFERRED_CHAIN="{{ (trim $container.Env.ACME_PREFERRED_CHAIN) }}"
52+
{{- "\n" }}ACME_{{ $cid }}_OCSP="{{ (trim $container.Env.ACME_OCSP) }}"
53+
{{- "\n" }}ACME_{{ $cid }}_EAB_KID="{{ (trim $container.Env.ACME_EAB_KID) }}"
54+
{{- "\n" }}ACME_{{ $cid }}_EAB_HMAC_KEY="{{ (trim $container.Env.ACME_EAB_HMAC_KEY) }}"
55+
{{- "\n" }}ZEROSSL_{{ $cid }}_API_KEY="{{ (trim $container.Env.ZEROSSL_API_KEY) }}"
56+
{{- "\n" }}LETSENCRYPT_{{ $cid }}_RESTART_CONTAINER="{{ (trim $container.Env.LETSENCRYPT_RESTART_CONTAINER) }}"
5757
{{ end }}
5858
{{ end }}
5959
{{ end }}

0 commit comments

Comments
 (0)