Browse Source

[ACME] Register error when no hostname could be validated

andryyy 6 years ago
parent
commit
6a8c4e332b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      data/Dockerfiles/acme/docker-entrypoint.sh

+ 1 - 0
data/Dockerfiles/acme/docker-entrypoint.sh

@@ -404,6 +404,7 @@ while true; do
   if [[ -z ${ALL_VALIDATED[*]} ]]; then
   if [[ -z ${ALL_VALIDATED[*]} ]]; then
     log_f "Cannot validate hostnames, skipping Let's Encrypt for 1 hour."
     log_f "Cannot validate hostnames, skipping Let's Encrypt for 1 hour."
     log_f "Use SKIP_LETS_ENCRYPT=y in mailcow.conf to skip it permanently."
     log_f "Use SKIP_LETS_ENCRYPT=y in mailcow.conf to skip it permanently."
+    redis-cli -h redis SET ACME_FAIL_TIME "$(date +%s)"
     sleep 1h
     sleep 1h
     exec $(readlink -f "$0")
     exec $(readlink -f "$0")
   fi
   fi