From 051e95ca37143b9bef906aba3d8b5db8192f3c2c Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 18 Mar 2019 22:41:41 +0100 Subject: [PATCH] Add a config file example --- acmed/acmed_example.toml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 acmed/acmed_example.toml diff --git a/acmed/acmed_example.toml b/acmed/acmed_example.toml new file mode 100644 index 0000000..3571a4a --- /dev/null +++ b/acmed/acmed_example.toml @@ -0,0 +1,44 @@ +[global] +accounts_directory = "/etc/acmed/accounts" +certificates_directory = "/etc/acmed/certs" + +[[endpoint]] +name = "letsencrypt v2 prod" +url = "https://acme-v02.api.letsencrypt.org/directory" + +[[endpoint]] +name = "letsencrypt v2 staging" +url = "https://acme-staging-v02.api.letsencrypt.org/directory" + +[[hook]] +name = "http-echo" +cmd = "echo" +args = ["{{proof}}"] +stdout = "/srv/http/{{current_domain}}/.well-known/acme-challenge/{{token}}" + +[[hook]] +name = "email-report" +cmd = "sendmail" +args = [ + "-f", "noreply@example.org", + "john.doe@example.org" +] +stdin = """Subject: Certificate renewal alert for {{domains.[0]}} + +The following certificate is being renewed. +domains: {{#each domains}}{{#if @index}}, {{/if}}{{this}}{{/each}} +algorithm: {{algorithm}} +challenge: {{challenge}} +status: {{status}}""" + +[[certificate]] +email = "certs@example.org" +endpoint = "letsencrypt v2 staging" +domains = [ + "test.example.org" +] +algorithm = "ecdsa_p384" +formats = ["pem"] +challenge = "http-01" +challenge_hooks = ["http-echo"] +post_operation_hook = ["email-report"]