aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/docker.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/acme/docker.hcl')
-rw-r--r--cmd/acme/docker.hcl43
1 files changed, 43 insertions, 0 deletions
diff --git a/cmd/acme/docker.hcl b/cmd/acme/docker.hcl
new file mode 100644
index 0000000..80aca40
--- /dev/null
+++ b/cmd/acme/docker.hcl
@@ -0,0 +1,43 @@
+defaults {
+ gracetime = "168h" # 1 week
+ listen = "localhost:8080"
+ listentls = "localhost:8443"
+ basedir = ".acme" # usually "/etc/ssl"
+ provider = "les"
+ account = "webmaster"
+ keysize = 2048 # default key size
+}
+
+provider "staging" {
+ directory = "https://acme-staging.api.letsencrypt.org/directory"
+}
+
+account "webmaster" {
+ mail = "webmaster@docker.moccu.com"
+ key = "private/webmaster.key"
+}
+
+account "webmaster2" {
+ mail = "webmaster@docker.moccu.com"
+ key = "private/webmaster2.key"
+}
+
+desire "docker" {
+ provider = "staging"
+ account = "webmaster"
+ altnames = ["docker.moccu.com", "test.docker.moccu.com"]
+ key = "private/docker_moccu_com.key"
+ cert = "certs/docker_moccu_com.pem"
+}
+
+desire "www" {
+ provider = "staging"
+ account = "webmaster2"
+ altnames = ["www.docker.moccu.com"]
+ key = "private/www_docker_moccu_com.key"
+ cert = "certs/www_docker_moccu_com.pem"
+}
+
+hook "nginx" {
+ cmd = "sudo service nginx reload"
+}