Restrict certificate generation to non-localhost domains
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user