fix bug when AUTO_LETS_ENCRYPT=yes and certbot can't resolve challenges
This commit is contained in:
parent
2c7337576d
commit
52534510ec
@ -4,7 +4,7 @@
|
|||||||
. /opt/entrypoint/utils.sh
|
. /opt/entrypoint/utils.sh
|
||||||
|
|
||||||
# start nginx with temp conf for let's encrypt challenges and API
|
# 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/nginx-temp.conf /tmp/nginx-temp.conf
|
||||||
cp /opt/confs/global/api-temp.conf /tmp/api.conf
|
cp /opt/confs/global/api-temp.conf /tmp/api.conf
|
||||||
if [ "$SWARM_MODE" = "yes" ] ; then
|
if [ "$SWARM_MODE" = "yes" ] ; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user