diff --git a/custom-domain/dstack-ingress/scripts/certman.py b/custom-domain/dstack-ingress/scripts/certman.py index 7495b14..49019ec 100644 --- a/custom-domain/dstack-ingress/scripts/certman.py +++ b/custom-domain/dstack-ingress/scripts/certman.py @@ -291,7 +291,10 @@ def _build_certbot_command(self, action: str, domain: str, email: str) -> List[s if os.environ.get("CERTBOT_STAGING", "false") == "true": base_cmd.extend(["--staging"]) - base_cmd.extend(["--dns-cloudflare-propagation-seconds=120"]) + if getattr(self.provider, 'CERTBOT_PROPAGATION_SECONDS'): + propagation_seconds = self.provider.CERTBOT_PROPAGATION_SECONDS + propagation_param = f"--dns-{self.provider_type}-propagation-seconds={propagation_seconds}" + base_cmd.extend([propagation_param]) # Log command with masked email for debugging masked_cmd = [arg if not (i > 0 and base_cmd[i-1] == "--email") else ""