We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b1638f commit d0d37aeCopy full SHA for d0d37ae
app/letsencrypt_service
@@ -488,9 +488,15 @@ function update_certs {
488
if source /app/letsencrypt_user_data; then
489
for cid in "${LETSENCRYPT_STANDALONE_CERTS[@]}"; do
490
local -n hosts_array="LETSENCRYPT_${cid}_HOST"
491
- for domain in "${hosts_array[@]}"; do
492
- add_standalone_configuration "$domain"
493
- done
+
+ local -n acme_challenge="ACME_${cid}_CHALLENGE"
+ acme_challenge="${acme_challenge:-HTTP-01}"
494
495
+ if [[ "$acme_challenge" == "HTTP-01" ]]; then
496
+ for domain in "${hosts_array[@]}"; do
497
+ add_standalone_configuration "$domain"
498
+ done
499
+ fi
500
done
501
reload_nginx
502
LETSENCRYPT_CONTAINERS+=( "${LETSENCRYPT_STANDALONE_CERTS[@]}" )
0 commit comments