From 52534510ec1f3e660f74e3a9dd17f37a0db054d9 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Mon, 14 Jun 2021 14:59:27 +0200 Subject: [PATCH] fix bug when AUTO_LETS_ENCRYPT=yes and certbot can't resolve challenges --- entrypoint/nginx-temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint/nginx-temp.sh b/entrypoint/nginx-temp.sh index eb86e94..694a1d9 100644 --- a/entrypoint/nginx-temp.sh +++ b/entrypoint/nginx-temp.sh @@ -4,7 +4,7 @@ . /opt/entrypoint/utils.sh # start nginx with temp conf for let's encrypt challenges and API -if [ "$(has_value AUTO_LETS_ENCRYPT yes)" != "" ] || [ "$SWARM_MODE" = "yes" ] ; then +if [ "$(has_value AUTO_LETS_ENCRYPT yes)" != "" ] || [ "$SWARM_MODE" = "yes" ] || [ "$AUTO_LETS_ENCRYPT" = "yes" ] ; then cp /opt/confs/global/nginx-temp.conf /tmp/nginx-temp.conf cp /opt/confs/global/api-temp.conf /tmp/api.conf if [ "$SWARM_MODE" = "yes" ] ; then