summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2025-12-28 18:09:06 +0000
committerMatthew Fennell <matthew@fennell.dev>2025-12-28 18:09:06 +0000
commita6a5f96bcfd6a2598bcee6e250ebf0ffd650c5ef (patch)
treeb069a791eb27f67fc73d3c01deff9fb441ba3524
parentbfc9b500264f754f016ddd7203376c7e21e8c92f (diff)
Get acme_email and desec_token from config section
When I still had a domain for motoristic, I had separate emails and tokens for it, the idea being that I could hand it over to someone else more easily. However, I deleted the motoristic server some time ago, and since then, all servers have used the same email and token. Therefore, retrieve this info from the common config section instead of the domain-specific section.
-rwxr-xr-xrenew-all4
1 files changed, 2 insertions, 2 deletions
diff --git a/renew-all b/renew-all
index f29438a..045e82f 100755
--- a/renew-all
+++ b/renew-all
@@ -27,7 +27,7 @@ def main() -> None:
"lego",
"--accept-tos",
"--email",
- domain["acme_email"],
+ config["acme_email"],
"--dns",
"desec",
"--server",
@@ -39,7 +39,7 @@ def main() -> None:
)
environment = {
"DESEC_POLLING_INTERVAL": str(config["timeout_seconds"]),
- "DESEC_TOKEN": domain["desec_token"],
+ "DESEC_TOKEN": config["desec_token"],
}
logging.info(f"Running command {command}")
subprocess.run(command, env=environment)