From 586ced4e84a5831cef9870194ee2f94efa026492 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 7 Dec 2015 11:49:49 +0100 Subject: Alternative config format --- acme.conf | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 acme.conf (limited to 'acme.conf') diff --git a/acme.conf b/acme.conf new file mode 100644 index 0000000..7c2205c --- /dev/null +++ b/acme.conf @@ -0,0 +1,42 @@ +# provider definitions +provider lev1 \ + directory https://acme-v01.api.letsencrypt.org/directory +provider les \ + directory https://acme-staging.api.letsencrypt.org/directory + +# account definitions +account another@example.com \ + key /etc/another.key \ + provider les + +# domain definitions +domain www.example.com \ + altnames { example.com, www2.example.com } \ + key "/etc/ssl/private/www_example_com.key" \ + cert "/etc/ssl/cert/www_example_com.pem" \ + webroot "/var/www/htdocs" \ + account another@example.com \ + gracetime 1 week \ + hook nginx + + +# domains with prefix www imply altname without www +domain www.example.net \ + key "/etc/ssl/private/www_example_net.key" \ + cert "/etc/ssl/cert/www_example_net.pem" \ + account another@example.com + +domain mail.example.com \ + key "/etc/ssl/private/mail_example_com.key" \ + cert "/etc/ssl/cert/mail_example_com.pem" \ + account another@example.com \ + gracetime 1 week \ + hook dovecot + +# hook definitions +hook nginx \ + cmd "sudo service nginx reload" + +hook dovecot \ + cmd "sudo service dovecot reload" + -- cgit v1.2.3