Skip to content

Traefik

https://www.digitalocean.com/community/tutorials/how-to-use-traefik-as-a-reverse-proxy-for-docker-containers-on-ubuntu-18-04

Generate admin pw

htpasswd -nb admin 'PASSWORD'
ansible-vault encrypt_string "HTPASSWD_ENCR_PW" --name traefik_admin_pw >> host_vars/foo

Show cert names:

jq .letsencrypt.Certificates[].domain < letsencrypt/acme.json

Dump certs

https://github.com/ldez/traefik-certs-dumper https://github.com/ldez/traefik-certs-dumper/blob/master/docs/docker-compose-traefik-v1.yml

Enforce cert-renewal

Options:

Http to https redirect

IP whitelist