diff --git a/nginx/container-entrypoint.sh b/nginx/container-entrypoint.sh index 854c1dd2d7..471f76fa0e 100644 --- a/nginx/container-entrypoint.sh +++ b/nginx/container-entrypoint.sh @@ -70,7 +70,7 @@ fi # Run certbot with the constructed arguments echo "Running command: certbot --non-interactive certonly ${certbot_args[*]}" -certbot --non-interactive certonly "${certbot_args[@]}" +certbot --non-interactive --cert-name "${FMTM_DOMAIN}" certonly "${certbot_args[@]}" echo "Certificate generated under: /etc/letsencrypt/live/${FMTM_DOMAIN}/" # Successful exit (stop container)