Browse Source

Update the example config file

pull/5/head
Rodolphe Breard 5 years ago
parent
commit
f1a3ae6eb7
  1. 17
      acmed/acmed_example.toml

17
acmed/acmed_example.toml

@ -5,16 +5,18 @@ certificates_directory = "/etc/acmed/certs"
[[endpoint]] [[endpoint]]
name = "letsencrypt v2 prod" name = "letsencrypt v2 prod"
url = "https://acme-v02.api.letsencrypt.org/directory" url = "https://acme-v02.api.letsencrypt.org/directory"
tos_agreed = false
[[endpoint]] [[endpoint]]
name = "letsencrypt v2 staging" name = "letsencrypt v2 staging"
url = "https://acme-staging-v02.api.letsencrypt.org/directory" url = "https://acme-staging-v02.api.letsencrypt.org/directory"
tos_agreed = false
[[hook]] [[hook]]
name = "http-echo" name = "http-echo"
cmd = "echo" cmd = "echo"
args = ["{{proof}}"] args = ["{{proof}}"]
stdout = "/srv/http/{{current_domain}}/.well-known/acme-challenge/{{token}}"
stdout = "/srv/http/{{current_domain}}/.well-known/acme-challenge/{{file_name}}"
[[hook]] [[hook]]
name = "email-report" name = "email-report"
@ -31,15 +33,20 @@ algorithm: {{algorithm}}
challenge: {{challenge}} challenge: {{challenge}}
status: {{status}}""" status: {{status}}"""
[[certificate]]
[[account]]
name = "test_account"
email = "certs@example.org" email = "certs@example.org"
[[certificate]]
account = "test_account"
endpoint = "letsencrypt v2 staging" endpoint = "letsencrypt v2 staging"
domains = [ domains = [
"test.example.org"
"example.org",
"sub-1.example.org",
"sub-2.example.org"
] ]
algorithm = "ecdsa_p384" algorithm = "ecdsa_p384"
kp_reuse = true
formats = ["pem"]
kp_reuse = false
challenge = "http-01" challenge = "http-01"
challenge_hooks = ["http-echo"] challenge_hooks = ["http-echo"]
post_operation_hooks = ["email-report"] post_operation_hooks = ["email-report"]
Loading…
Cancel
Save