From f72667707ddfa7da6830ad099dbf470fd951991a Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Fri, 14 Nov 2025 05:03:09 +0000 Subject: [PATCH] ingress: Correct propagation option for other providers --- custom-domain/dstack-ingress/scripts/certman.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ""