Archived
1
0
Fork 0

prosody: Change acme examples in README.MD

This commit is contained in:
Joerg Elfring 2018-11-22 19:24:05 +01:00
parent cb513b9282
commit 16b6bea9bf

View file

@ -30,7 +30,6 @@ $ docker run -d \
--restart always \ --restart always \
--name prosody \ --name prosody \
-v /etc/localtime:/etc/localtime:ro \ -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-cfg:/usr/local/etc/prosody:ro \
-v prosody-data:/usr/local/var/lib/prosody \ -v prosody-data:/usr/local/var/lib/prosody \
elfrinjo/prosody elfrinjo/prosody
@ -44,16 +43,28 @@ $ docker exec -ti prosody bash
To Create a certificate for you host: To Create a certificate for you host:
```console ```console
docker run --rm -it \ $ docker pull neilpang/acme.sh
$ docker run --rm -it \
--volume prosody-acme:/acme.sh \ --volume prosody-acme:/acme.sh \
--net=host \ --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: To renew the certificate:
```console ```console
docker run --rm -it \ $ docker pull neilpang/acme.sh
$ docker run --rm -it \
--volume prosody-acme:/acme.sh \ --volume prosody-acme:/acme.sh \
--net=host \ --net=host \
neilpang/acme.sh --cron --standalone 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
``` ```