Skip to main content
The steps I would take to secure Traefik and such post install. Treat this as a template—adapt entrypoint names, paths, resolvers, and middleware references to your stack. Don’t copy-paste the blocks wholesale without checking they match your setup. A few I would recommend but this assumes you won’t ever be doing http traffic.. (externally)
Into your traefik_dynamic though I would recommend actually splitting the files and using like,
By default it’s using a file path which makes adding more file like stuff annoying,
Then we go in the folder relative of the compose, You will need to move your traefik dynamic into this folder. Depending how you have set it up I would also recommend to be using wildcard certs with dns validation if you aren’t already. Anyways, /rules/tls.yml
/rules/middlewares.yml Though would recommend to setup chains if you plan to have other middleware’s to be aligned.. The above will score you an A+
In your traefik_config.yml
Would also recommend to ask for EC384 certs which are more secure then RSA but also might limit older clients from connecting, You can do so via,

Pangolin dashboard (/rules/pangolin.yml)

Routers below use chain-secure@file from /rules/middlewares.yml.
What’s not shown is like DANE-443 (TLSA), RoFS which I will write later along with the apparmor/seccomp profiles.