diff --git a/docs/admin-guide/configuration/https/acme.md b/docs/admin-guide/configuration/https/acme.md index ebb438c0..01bfd616 100644 --- a/docs/admin-guide/configuration/https/acme.md +++ b/docs/admin-guide/configuration/https/acme.md @@ -121,7 +121,7 @@ In this documentation the nginx container is called nginx, please be aware of th To get your certificates inside a container you need to volume mount `/etc/letsencrypt/live` into your container, where you would expect your certificates to be. Be careful, the certificate and key are in the same folder! Also you need to "manually" reload the webserver using the certificate, when "ordering" a certificate and when its renewed by certbot. Bellow are the steps needed. The code blocks assume that you configured the cli.ini file with puppet module files:files already. -``` +```yaml nginx: image: nginx:latest container_name: nginx @@ -136,7 +136,7 @@ Also you need to "manually" reload the webserver using the certificate, when "or And point your virtual host configuration to the correct folder: -``` +```nginx server { listen 80; server_name myhost.psi.ch; @@ -156,7 +156,7 @@ server { Getting the certificate with reloading the nginx inside the container, create a file (mine is called get-cert.sh) And execute `./get-cert.sh myhost.psi.ch` manually for each certificate you need. -``` +```yaml /root/get-cert.sh mode: 0744 content: | @@ -183,7 +183,7 @@ docker exec nginx nginx -s reload And create the post renewal hook: -``` +```yaml /etc/letsencrypt/renewal-hooks/post/nginx.sh: mode: '0544' content: |