From 16b6bea9bf4ea131fcc94579ddf31ad4e3e725a7 Mon Sep 17 00:00:00 2001 From: Joerg Elfring Date: Thu, 22 Nov 2018 19:24:05 +0100 Subject: [PATCH] prosody: Change acme examples in README.MD --- prosody-0.11/README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/prosody-0.11/README.md b/prosody-0.11/README.md index 1383c0e..ccfa1dd 100644 --- a/prosody-0.11/README.md +++ b/prosody-0.11/README.md @@ -30,7 +30,6 @@ $ docker run -d \ --restart always \ --name prosody \ -v /etc/localtime:/etc/localtime:ro \ - -v prosody-acme:/usr/local/etc/prosody/certs:ro \ -v prosody-cfg:/usr/local/etc/prosody:ro \ -v prosody-data:/usr/local/var/lib/prosody \ elfrinjo/prosody @@ -44,16 +43,28 @@ $ docker exec -ti prosody bash To Create a certificate for you host: ```console -docker run --rm -it \ +$ docker pull neilpang/acme.sh +$ docker run --rm -it \ --volume prosody-acme:/acme.sh \ --net=host \ - neilpang/acme.sh --issue -d example.com -d conference.example.com --standalone + neilpang/acme.sh --issue \ + -d example.com \ + -d conference.example.com \ + --standalone ``` To renew the certificate: ```console -docker run --rm -it \ +$ docker pull neilpang/acme.sh +$ docker run --rm -it \ --volume prosody-acme:/acme.sh \ --net=host \ neilpang/acme.sh --cron --standalone +$ docker run --rm \ + -v prosody-acme:/acme.sh \ + -v prosody-cfg:/target \ + neilpang/acme.sh --install-cert \ + -d example.com \ + --key-file /target/certs/example.com/example.com.key \ + --fullchain-file /target/certs/example.com/fullchain.cer ```