Restrict certificate generation to non-localhost domains
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-04-14 12:20:01 +02:00
parent 0c841706a8
commit 9ebbed0696

View File

@@ -170,7 +170,7 @@ if [ ! -f "$DOMAIN_CERT_DIR/dhparam.pem" ]; then
fi
if [ "$GENERATE_CERTIFICATE" == "true" ]; then
if [ "$GENERATE_CERTIFICATE" == "true" ] && [ "$DOMAIN" != "localhost" ]; then
CURL_CHECK="curl -s -o /dev/null -w "%{http_code}" https://$LETSENCRYPT_URL"