So I have traefik setup and routing my services from my DynamicDNS I have setup in cpanel with my domain hosts. They automatically create an SSL cert when you setup the dynamicDNS.
Issue I have is when viewing the sites they are showing as not secure as browser cannot read the cert.
How do I get the cert into traefik, I can view the cert , private key etc in cpanel ?
Hope this all makes sense. I used to use Nginx as it has cpanel plugin but its not as flexible as traefik ?
Traefik can manage LetsEncrypt by itself (create & update certs), check simple Traefik example.
If you want to use a TLS cert created by a different program, than you need to load it in Traefik dynamic config file TLS section, which needs to be loaded in static config with
So I have it working locally . with my allowed Ip's. I now need to add basic auth if come in externally.
This is my fileConfig.yml
## EXTERNAL ROUTING EXAMPLE - Only use if you want to proxy something manually ##
# Homeassistant routing example - Remove if not used
## SERVICES EXAMPLE ##
# Homeassistant service example - Remove if not used
# - url: http://192.168.1.211:8123/
## MIDDLEWARES ##
# Only Allow Local networks
- 127.0.0.1/32 # localhost
- 192.168.1.1/24 # LAN Subnet
# Security headers
# Only use secure ciphers - https://ssl-config.mozilla.org/#server=traefik&version=2.6.0&config=intermediate&guideline=5.6