Traefik
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:
- Remove acme.jsonand restart traefik (beware of LE rate limiting by mass renewal all certs)
- Manually remove cert + key from acme.jsonand restart traefik
- Use https://hub.docker.com/r/containous/acme-fixer
Http to https redirect
- HTTP to HTTPS redirects with Traefik Per domain, for a single application only or globally for all containers
IP whitelist
- Docs: Ip whitelist- Only works in K3s with forwardedHeaders.insecureandproxyProtocol.insecure: Traefik Kubernetes Ingress and X-Forwarded- Headers
 
- Only works in K3s with