Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Add a New Cert

This will add a new cert using a certbot config that is compatible with the haproxy config template below. After creating the cert, you should run the refresh script referenced below to initialize haproxy to use it. After adding the cert and running the refresh script, no further action is needed.

Request certificate from let's encrypt

 

Code Block

docker exec haproxy-certbot certbot-certonly --domain example.com --email mail@gmail.com --dry-run 

 

create/update haproxy formatted certs in certs.d and then restart haproxy

Code Block
docker exec haproxy-certbot haproxy-refresh

After testing the setup, remove --dry-run to generate a live certificateFollow existing documentation here: https://github.com/thingsboard/docker/blob/master/haproxy-certbot/README.md