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.json
and restart traefik (beware of LE rate limiting by mass renewal all certs) - Manually remove cert + key from
acme.json
and 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.insecure
andproxyProtocol.insecure
: Traefik Kubernetes Ingress and X-Forwarded- Headers
- Only works in K3s with