Rhooo la boulette ! en me relisant, je m'apperçois que j'ai oublié un fichier essentiel : la config du proxy !
Il faut donc rajouter un fichier $PATH_APP/traefik/traefik.toml avec le contenu suivant:
( $PATH_APP étant le chemin défini dans le fichier .env)
defaultEntryPoints = ["https","http"]
[api]
entryPoint = "traefik"
dashboard = true
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
minVersion = "VersionTLS12"
cipherSuites = [
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"
]
[entryPoints.traefik]
address = ":8080"
[entryPoints.traefik.auth.basic]
users = ["zer:$$apr1$$Gj3CF4pe$$2j.YaFPF1laxXSJOl9uPu1"]
[acme]
email = "me@mydom.com"
storage = "/etc/traefik/acme/acme.json"
entryPoint = "https"
onHostRule = true
onDemand = false
[acme.httpChallenge]
entryPoint = "http"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "DOMAINE"
watch = true
exposedbydefault = false
Et remplacer :
- DOMAINE : Par votre domaine principal (sous la forme : domain.tld)
- me@mydom.com : par votre adresse email pour recevoir les alertes letsencrypt
- zer:$$apr1$$Gj3CF4pe$$2j.YaFPF1laxXSJOl9uPu1 : Par le hash de votre mot de passe (pour accéder au dashboard de traefik.
Désolé pour l'oubli !