Explorar o código

[ACME] Fix insecure http verifications

andryyy %!s(int64=6) %!d(string=hai) anos
pai
achega
cbdd6b0dfa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      data/Dockerfiles/acme/docker-entrypoint.sh

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

@@ -138,7 +138,7 @@ verify_challenge_path(){
   if [[ ${SKIP_HTTP_VERIFICATION} == "y" ]]; then
     echo '(skipping check, returning 0)'
     return 0
-  elif [[ "$(curl -${2} -L http://${1}/.well-known/acme-challenge/${RANDOM_N} --silent)" == "${RANDOM_N}"  ]]; then
+  elif [[ "$(curl --insecure -${2} -L http://${1}/.well-known/acme-challenge/${RANDOM_N} --silent)" == "${RANDOM_N}"  ]]; then
     rm /var/www/acme/${RANDOM_N}
     return 0
   else