mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-09-26 22:10:55 +02:00
Check for unsupported ACME v2 endpoints (#389)
This commit is contained in:
parent
712bf7c674
commit
5da685795b
@ -58,6 +58,12 @@ source /app/functions.sh
|
||||
[[ $DEBUG == true ]] && set -x
|
||||
|
||||
if [[ "$*" == "/bin/bash /app/start.sh" ]]; then
|
||||
acmev2_re='https://acme-.*v02\.api\.letsencrypt\.org/directory'
|
||||
if [[ "${ACME_CA_URI:-}" =~ $acmev2_re ]]; then
|
||||
echo "Error: ACME v2 API is not yet supported by simp_le."
|
||||
echo "See https://github.com/zenhack/simp_le/issues/101"
|
||||
exit 1
|
||||
fi
|
||||
check_docker_socket
|
||||
if [[ -z "$(get_self_cid)" ]]; then
|
||||
echo "Error: can't get my container ID !" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user