1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00
Mailu/optional/traefik-certdumper
Dario Ernst 2c5f977117
Make certdumper output fullchain-pems
Before it only outputted a pem-file with the server-certificate —
however, it seems some clients want the fullchain delivered, as it’s
common with letsencrypt.

closes #847
2019-01-24 17:34:32 +02:00
..
.dockerignore Add docker to dump traefiks certificates to pem 2018-12-26 12:11:19 +01:00
Dockerfile Use alpine versioned and defin volumes 2018-12-30 18:45:48 +02:00
LICENSE Add docker to dump traefiks certificates to pem 2018-12-26 12:11:19 +01:00
README.md Add docker to dump traefiks certificates to pem 2018-12-26 12:11:19 +01:00
run.sh Make certdumper output fullchain-pems 2019-01-24 17:34:32 +02:00

Single-domain traefik-certdumper for mailu

This is based on the work by Sven Dowideit on https://github.com/SvenDowideit/traefik-certdumper

Fork?

This is a slight modification that is less flexible, but is adapted to the usecase in mailu. If you wish to deploy mailu behind a traefik, you face many problems. One of these is that you need to get the certificates into mailu in a very defined manner. This will copy the certificate for the Main:-domain given in the DOMAIN-environment onto output.

If your output happens to be mailu-front-/certs, the certificate-watcher in the front-container will catch it and reload nginx. This works for mailu TLS_FLAVOR=[mail, cert]

  certdumper:
    restart: always
    image: Mailu/traefik-certdumper:$VERSION
    environment:
      - DOMAIN=$DOMAIN
    volumes:
      # your traefik data-volume is probably declared outside of the mailu composefile
      - /data/traefik:/traefik
      - $ROOT/certs/:/output/