From b65ef3acffd1cbbddeaaf7863b443542da3acce3 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Wed, 29 May 2024 18:19:21 +0100 Subject: Store acme and DNS details per-domain Different domains are managed by different identities both in deSEC and letsencrypt. Therefore, we should store these per domain, instead of globally. --- renew-all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renew-all b/renew-all index 09ddbc8..af06357 100755 --- a/renew-all +++ b/renew-all @@ -27,7 +27,7 @@ def main() -> None: "lego", "--accept-tos", "--email", - config["acme_email"], + domain["acme_email"], "--dns", "desec", "--server", @@ -39,7 +39,7 @@ def main() -> None: ) environment = { "DESEC_POLLING_INTERVAL": str(config["timeout_seconds"]), - "DESEC_TOKEN": config["desec_token"], + "DESEC_TOKEN": domain["desec_token"], } logging.info(f"Running command {command}") subprocess.run(command, env=environment) -- cgit v1.2.3