summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2024-05-29 18:19:21 +0100
committerMatthew Fennell <matthew@fennell.dev>2024-05-29 18:19:21 +0100
commitb65ef3acffd1cbbddeaaf7863b443542da3acce3 (patch)
tree38ff5ca593c93f9ecbecbbf6a092fb8e4c4fd71c
parenta960b23caebd5362b5f292f73c6e41ebee2ad98c (diff)
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.
-rwxr-xr-xrenew-all4
1 files 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)