From 9ebbed06962422c0127914428c08565192938850 Mon Sep 17 00:00:00 2001 From: gyurix Date: Mon, 14 Apr 2025 12:20:01 +0200 Subject: [PATCH] Restrict certificate generation to non-localhost domains --- scripts/check_certificates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_certificates.sh b/scripts/check_certificates.sh index 073aab8..467a8fc 100755 --- a/scripts/check_certificates.sh +++ b/scripts/check_certificates.sh @@ -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"