From 17cadf4ffc21cdd833a478aa995e725b14f3ef15 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 28 Jul 2023 03:00:17 +0300 Subject: [PATCH] fix(acme): add dns propagation check exceptions --- letsencrypt/acme.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/letsencrypt/acme.nix b/letsencrypt/acme.nix index 494a81f..e38d67e 100644 --- a/letsencrypt/acme.nix +++ b/letsencrypt/acme.nix @@ -1,6 +1,7 @@ { config, pkgs, lib, ... }: let cfg = config.services.userdata; + dnsPropagationCheckExceptions = [ "DIGITALOCEAN" ]; in { users.groups.acmerecievers = { @@ -11,7 +12,7 @@ in defaults = { email = "${cfg.username}@${cfg.domain}"; server = if cfg.dns.useStagingACME then "https://acme-staging-v02.api.letsencrypt.org/directory" else "https://acme-v02.api.letsencrypt.org/directory"; - dnsPropagationCheck = true; + dnsPropagationCheck = if lib.elem cfg.dns.provider dnsPropagationCheckExceptions then false else true; reloadServices = [ "nginx" ]; }; certs = lib.mkForce {