diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-05-29 18:19:21 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-05-29 18:19:21 +0100 |
commit | b65ef3acffd1cbbddeaaf7863b443542da3acce3 (patch) | |
tree | 38ff5ca593c93f9ecbecbbf6a092fb8e4c4fd71c | |
parent | a960b23caebd5362b5f292f73c6e41ebee2ad98c (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-x | renew-all | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |