jmc:
"traefik.http.routers.traefik.tls={}"
I just tried the configuration that you recommended to me. I do not understand why it does not work.
Here is the full log.
time="2020-01-29T14:06:35Z" level=info msg="Configuration loaded from flags."
time="2020-01-29T14:06:35Z" level=info msg="Traefik version 2.1.3 built on 2020-01-21T17:30:29Z"
time="2020-01-29T14:06:35Z" level=debug msg="Static configuration loaded {\"global\":{\"checkNewVersion\":true},\"serversTransport\":{\"maxIdleConnsPerHost\":200},\"entryPoints\":{\"http\":{\"address\":\":80\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":10000000000},\"respondingTimeouts\":{\"idleTimeout\":180000000000}},\"forwardedHeaders\":{}},\"https\":{\"address\":\":443\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":10000000000},\"respondingTimeouts\":{\"idleTimeout\":180000000000}},\"forwardedHeaders\":{}},\"traefik\":{\"address\":\":8080\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":10000000000},\"respondingTimeouts\":{\"idleTimeout\":180000000000}},\"forwardedHeaders\":{}}},\"providers\":{\"providersThrottleDuration\":2000000000,\"docker\":{\"watch\":true,\"endpoint\":\"unix:///var/run/docker.sock\",\"defaultRule\":\"Host(`{{ normalize .Name }}`)\",\"swarmModeRefreshSeconds\":15000000000}},\"api\":{\"insecure\":true,\"dashboard\":true},\"log\":{\"level\":\"DEBUG\",\"format\":\"common\"},\"accessLog\":{\"format\":\"common\",\"filters\":{},\"fields\":{\"defaultMode\":\"keep\",\"headers\":{\"defaultMode\":\"drop\"}}}}"
time="2020-01-29T14:06:35Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/v2.0/contributing/data-collection/\n"
time="2020-01-29T14:06:35Z" level=info msg="Starting provider aggregator.ProviderAggregator {}"
time="2020-01-29T14:06:35Z" level=debug msg="Start TCP Server" entryPointName=https
time="2020-01-29T14:06:35Z" level=debug msg="Start TCP Server" entryPointName=http
time="2020-01-29T14:06:35Z" level=debug msg="Start TCP Server" entryPointName=traefik
time="2020-01-29T14:06:35Z" level=info msg="Starting provider *traefik.Provider {}"
time="2020-01-29T14:06:35Z" level=info msg="Starting provider *docker.Provider {\"watch\":true,\"endpoint\":\"unix:///var/run/docker.sock\",\"defaultRule\":\"Host(`{{ normalize .Name }}`)\",\"swarmModeRefreshSeconds\":15000000000}"
time="2020-01-29T14:06:35Z" level=debug msg="Configuration received from provider internal: {\"http\":{\"routers\":{\"api\":{\"entryPoints\":[\"traefik\"],\"service\":\"api@internal\",\"rule\":\"PathPrefix(`/api`)\",\"priority\":2147483646},\"dashboard\":{\"entryPoints\":[\"traefik\"],\"middlewares\":[\"dashboard_redirect@internal\",\"dashboard_stripprefix@internal\"],\"service\":\"dashboard@internal\",\"rule\":\"PathPrefix(`/`)\",\"priority\":2147483645}},\"middlewares\":{\"dashboard_redirect\":{\"redirectRegex\":{\"regex\":\"^(http:\\\\/\\\\/[^:\\\\/]+(:\\\\d+)?)\\\\/$\",\"replacement\":\"${1}/dashboard/\",\"permanent\":true}},\"dashboard_stripprefix\":{\"stripPrefix\":{\"prefixes\":[\"/dashboard/\",\"/dashboard\"]}}},\"services\":{\"api\":{},\"dashboard\":{}}},\"tcp\":{},\"tls\":{}}" providerName=internal
time="2020-01-29T14:06:35Z" level=debug msg="Added outgoing tracing middleware api@internal" routerName=api@internal middlewareName=tracing middlewareType=TracingForwarder entryPointName=traefik
time="2020-01-29T14:06:35Z" level=debug msg="Added outgoing tracing middleware dashboard@internal" routerName=dashboard@internal middlewareName=tracing middlewareType=TracingForwarder entryPointName=traefik
time="2020-01-29T14:06:35Z" level=debug msg="Creating middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal middlewareType=StripPrefix
time="2020-01-29T14:06:35Z" level=debug msg="Adding tracing to middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal
time="2020-01-29T14:06:35Z" level=debug msg="Creating middleware" middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex entryPointName=traefik routerName=dashboard@internal
time="2020-01-29T14:06:35Z" level=debug msg="Setting up redirection from ^(http:\\/\\/[^:\\/]+(:\\d+)?)\\/$ to ${1}/dashboard/" routerName=dashboard@internal middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex entryPointName=traefik
time="2020-01-29T14:06:35Z" level=debug msg="Adding tracing to middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_redirect@internal
time="2020-01-29T14:06:35Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2020-01-29T14:06:35Z" level=debug msg="No default certificate, generating one"
time="2020-01-29T14:06:35Z" level=debug msg="Provider connection established with docker 1.13.1 (API 1.26)" providerName=docker
time="2020-01-29T14:06:35Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"traefik\":{\"entryPoints\":[\"https\"],\"middlewares\":[\"admin\"],\"service\":\"api@internal\",\"rule\":\"Host(`traefik.mydomain.local`)\"}},\"middlewares\":{\"admin\":{\"basicAuth\":{\"users\":[\"admin:$apr1$ii8jMgKQ$1K3vQZu1.Nsyb.taoNIZ1/\"]}}},\"services\":{\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://100.100.98.2:80\"}],\"passHostHeader\":true}}}},\"tcp\":{}}" providerName=docker
time="2020-01-29T14:06:35Z" level=debug msg="Added outgoing tracing middleware api@internal" entryPointName=https routerName=traefik@docker middlewareName=tracing middlewareType=TracingForwarder
time="2020-01-29T14:06:35Z" level=debug msg="Creating middleware" entryPointName=https routerName=traefik@docker middlewareName=admin@docker middlewareType=BasicAuth
time="2020-01-29T14:06:35Z" level=debug msg="Adding tracing to middleware" entryPointName=https routerName=traefik@docker middlewareName=admin@docker
time="2020-01-29T14:06:35Z" level=debug msg="Creating middleware" middlewareName=traefik-internal-recovery middlewareType=Recovery entryPointName=https
time="2020-01-29T14:06:35Z" level=debug msg="Added outgoing tracing middleware api@internal" middlewareType=TracingForwarder entryPointName=traefik routerName=api@internal middlewareName=tracing
time="2020-01-29T14:06:35Z" level=debug msg="Added outgoing tracing middleware dashboard@internal" entryPointName=traefik routerName=dashboard@internal middlewareType=TracingForwarder middlewareName=tracing
time="2020-01-29T14:06:35Z" level=debug msg="Creating middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal middlewareType=StripPrefix
time="2020-01-29T14:06:35Z" level=debug msg="Adding tracing to middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal
time="2020-01-29T14:06:35Z" level=debug msg="Creating middleware" middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex entryPointName=traefik routerName=dashboard@internal
time="2020-01-29T14:06:35Z" level=debug msg="Setting up redirection from ^(http:\\/\\/[^:\\/]+(:\\d+)?)\\/$ to ${1}/dashboard/" routerName=dashboard@internal middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex entryPointName=traefik
time="2020-01-29T14:06:35Z" level=debug msg="Adding tracing to middleware" routerName=dashboard@internal middlewareName=dashboard_redirect@internal entryPointName=traefik
time="2020-01-29T14:06:35Z" level=debug msg="Creating middleware" middlewareName=traefik-internal-recovery middlewareType=Recovery entryPointName=traefik
time="2020-01-29T14:06:35Z" level=debug msg="No default certificate, generating one"
time="2020-01-29T14:06:36Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"traefik\":{\"entryPoints\":[\"https\"],\"middlewares\":[\"admin\"],\"service\":\"api@internal\",\"rule\":\"Host(`traefik.mydomain.local`)\"}},\"middlewares\":{\"admin\":{\"basicAuth\":{\"users\":[\"admin:$apr1$ii8jMgKQ$1K3vQZu1.Nsyb.taoNIZ1/\"]}}},\"services\":{\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://100.100.98.2:80\"}],\"passHostHeader\":true}}}},\"tcp\":{}}" providerName=docker
time="2020-01-29T14:06:36Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"traefik\":{\"entryPoints\":[\"https\"],\"middlewares\":[\"admin\"],\"service\":\"api@internal\",\"rule\":\"Host(`traefik.mydomain.local`)\"}},\"middlewares\":{\"admin\":{\"basicAuth\":{\"users\":[\"admin:$apr1$ii8jMgKQ$1K3vQZu1.Nsyb.taoNIZ1/\"]}}},\"services\":{\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://100.100.98.2:80\"}],\"passHostHeader\":true}}}},\"tcp\":{}}" providerName=docker
time="2020-01-29T14:06:37Z" level=debug msg="Added outgoing tracing middleware dashboard@internal" entryPointName=traefik routerName=dashboard@internal middlewareName=tracing middlewareType=TracingForwarder
time="2020-01-29T14:06:37Z" level=debug msg="Creating middleware" middlewareType=StripPrefix entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal
time="2020-01-29T14:06:37Z" level=debug msg="Adding tracing to middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal
time="2020-01-29T14:06:37Z" level=debug msg="Creating middleware" routerName=dashboard@internal entryPointName=traefik middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex
time="2020-01-29T14:06:37Z" level=debug msg="Setting up redirection from ^(http:\\/\\/[^:\\/]+(:\\d+)?)\\/$ to ${1}/dashboard/" middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex routerName=dashboard@internal entryPointName=traefik
time="2020-01-29T14:06:37Z" level=debug msg="Adding tracing to middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_redirect@internal
time="2020-01-29T14:06:37Z" level=debug msg="Added outgoing tracing middleware api@internal" routerName=api@internal entryPointName=traefik middlewareName=tracing middlewareType=TracingForwarder
time="2020-01-29T14:06:37Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2020-01-29T14:06:37Z" level=debug msg="Added outgoing tracing middleware api@internal" entryPointName=https routerName=traefik@docker middlewareName=tracing middlewareType=TracingForwarder
time="2020-01-29T14:06:37Z" level=debug msg="Creating middleware" middlewareName=admin@docker middlewareType=BasicAuth routerName=traefik@docker entryPointName=https
time="2020-01-29T14:06:37Z" level=debug msg="Adding tracing to middleware" middlewareName=admin@docker entryPointName=https routerName=traefik@docker
time="2020-01-29T14:06:37Z" level=debug msg="Creating middleware" middlewareName=traefik-internal-recovery middlewareType=Recovery entryPointName=https
time="2020-01-29T14:06:37Z" level=debug msg="No default certificate, generating one"
time="2020-01-29T14:06:38Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"traefik\":{\"entryPoints\":[\"https\"],\"middlewares\":[\"admin\"],\"service\":\"api@internal\",\"rule\":\"Host(`traefik.mydomain.local`)\"}},\"middlewares\":{\"admin\":{\"basicAuth\":{\"users\":[\"admin:$apr1$ii8jMgKQ$1K3vQZu1.Nsyb.taoNIZ1/\"]}}},\"services\":{\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://100.100.98.2:80\"}],\"passHostHeader\":true}}}},\"tcp\":{}}" providerName=docker
time="2020-01-29T14:06:38Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"traefik\":{\"entryPoints\":[\"https\"],\"middlewares\":[\"admin\"],\"service\":\"api@internal\",\"rule\":\"Host(`traefik.mydomain.local`)\"}},\"middlewares\":{\"admin\":{\"basicAuth\":{\"users\":[\"admin:$apr1$ii8jMgKQ$1K3vQZu1.Nsyb.taoNIZ1/\"]}}},\"services\":{\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://100.100.98.2:80\"}],\"passHostHeader\":true}}}},\"tcp\":{}}" providerName=docker
time="2020-01-29T14:06:39Z" level=debug msg="Added outgoing tracing middleware dashboard@internal" middlewareName=tracing middlewareType=TracingForwarder entryPointName=traefik routerName=dashboard@internal
time="2020-01-29T14:06:39Z" level=debug msg="Creating middleware" middlewareType=StripPrefix middlewareName=dashboard_stripprefix@internal entryPointName=traefik routerName=dashboard@internal
time="2020-01-29T14:06:39Z" level=debug msg="Adding tracing to middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal
time="2020-01-29T14:06:39Z" level=debug msg="Creating middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex
time="2020-01-29T14:06:39Z" level=debug msg="Setting up redirection from ^(http:\\/\\/[^:\\/]+(:\\d+)?)\\/$ to ${1}/dashboard/" routerName=dashboard@internal middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex entryPointName=traefik
time="2020-01-29T14:06:39Z" level=debug msg="Adding tracing to middleware" routerName=dashboard@internal entryPointName=traefik middlewareName=dashboard_redirect@internal
time="2020-01-29T14:06:39Z" level=debug msg="Added outgoing tracing middleware api@internal" entryPointName=traefik routerName=api@internal middlewareName=tracing middlewareType=TracingForwarder
time="2020-01-29T14:06:39Z" level=debug msg="Creating middleware" middlewareType=Recovery entryPointName=traefik middlewareName=traefik-internal-recovery
time="2020-01-29T14:06:39Z" level=debug msg="Added outgoing tracing middleware api@internal" entryPointName=https routerName=traefik@docker middlewareName=tracing middlewareType=TracingForwarder
time="2020-01-29T14:06:39Z" level=debug msg="Creating middleware" middlewareType=BasicAuth entryPointName=https routerName=traefik@docker middlewareName=admin@docker
time="2020-01-29T14:06:39Z" level=debug msg="Adding tracing to middleware" entryPointName=https routerName=traefik@docker middlewareName=admin@docker
time="2020-01-29T14:06:39Z" level=debug msg="Creating middleware" entryPointName=https middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2020-01-29T14:06:39Z" level=debug msg="No default certificate, generating one"
time="2020-01-29T14:06:39Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"traefik\":{\"entryPoints\":[\"https\"],\"middlewares\":[\"admin\"],\"service\":\"api@internal\",\"rule\":\"Host(`traefik.mydomain.local`)\"}},\"middlewares\":{\"admin\":{\"basicAuth\":{\"users\":[\"admin:$apr1$ii8jMgKQ$1K3vQZu1.Nsyb.taoNIZ1/\"]}}},\"services\":{\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://100.100.98.2:80\"}],\"passHostHeader\":true}}}},\"tcp\":{}}" providerName=docker
time="2020-01-29T14:06:39Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"traefik\":{\"entryPoints\":[\"https\"],\"middlewares\":[\"admin\"],\"service\":\"api@internal\",\"rule\":\"Host(`traefik.mydomain.local`)\"}},\"middlewares\":{\"admin\":{\"basicAuth\":{\"users\":[\"admin:$apr1$ii8jMgKQ$1K3vQZu1.Nsyb.taoNIZ1/\"]}}},\"services\":{\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://100.100.98.2:80\"}],\"passHostHeader\":true}}}},\"tcp\":{}}" providerName=docker
time="2020-01-29T14:06:41Z" level=debug msg="Added outgoing tracing middleware api@internal" routerName=api@internal middlewareType=TracingForwarder middlewareName=tracing entryPointName=traefik
time="2020-01-29T14:06:41Z" level=debug msg="Added outgoing tracing middleware dashboard@internal" routerName=dashboard@internal entryPointName=traefik middlewareType=TracingForwarder middlewareName=tracing
time="2020-01-29T14:06:41Z" level=debug msg="Creating middleware" middlewareType=StripPrefix entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal
time="2020-01-29T14:06:41Z" level=debug msg="Adding tracing to middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal
time="2020-01-29T14:06:41Z" level=debug msg="Creating middleware" middlewareType=RedirectRegex routerName=dashboard@internal entryPointName=traefik middlewareName=dashboard_redirect@internal
time="2020-01-29T14:06:41Z" level=debug msg="Setting up redirection from ^(http:\\/\\/[^:\\/]+(:\\d+)?)\\/$ to ${1}/dashboard/" routerName=dashboard@internal entryPointName=traefik middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex
time="2020-01-29T14:06:41Z" level=debug msg="Adding tracing to middleware" middlewareName=dashboard_redirect@internal entryPointName=traefik routerName=dashboard@internal
time="2020-01-29T14:06:41Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2020-01-29T14:06:41Z" level=debug msg="Added outgoing tracing middleware api@internal" entryPointName=https routerName=traefik@docker middlewareName=tracing middlewareType=TracingForwarder
time="2020-01-29T14:06:41Z" level=debug msg="Creating middleware" routerName=traefik@docker middlewareName=admin@docker middlewareType=BasicAuth entryPointName=https
time="2020-01-29T14:06:41Z" level=debug msg="Adding tracing to middleware" entryPointName=https routerName=traefik@docker middlewareName=admin@docker
time="2020-01-29T14:06:41Z" level=debug msg="Creating middleware" entryPointName=https middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2020-01-29T14:06:41Z" level=debug msg="No default certificate, generating one"
time="2020-01-29T14:06:59Z" level=debug msg="Serving default certificate for request: \"traefik.mydomain.local\""
time="2020-01-29T14:06:59Z" level=debug msg="http: TLS handshake error from 10.37.196.111:63473: remote error: tls: bad certificate"
time="2020-01-29T14:07:01Z" level=debug msg="Serving default certificate for request: \"traefik.mydomain.local\""
10.37.196.111 - - [29/Jan/2020:14:07:02 +0000] "GET /dashboard HTTP/2.0" - - "-" "-" 1 - - 0ms
10.37.196.111 - - [29/Jan/2020:14:07:05 +0000] "GET / HTTP/2.0" - - "-" "-" 2 - - 0ms
10.37.196.111 - - [29/Jan/2020:14:07:45 +0000] "GET / HTTP/2.0" - - "-" "-" 3 - - 0ms
10.37.196.111 - - [29/Jan/2020:14:07:53 +0000] "GET /dashboard HTTP/2.0" - - "-" "-" 4 - - 0ms
10.37.196.111 - - [29/Jan/2020:14:07:58 +0000] "GET /dashboard/ HTTP/2.0" - - "-" "-" 5 - - 3ms
10.37.196.111 - - [29/Jan/2020:14:13:16 +0000] "GET /dashboard/ HTTP/2.0" - - "-" "-" 6 - - 0ms
10.37.196.111 - - [29/Jan/2020:14:13:18 +0000] "GET /dashboard HTTP/2.0" - - "-" "-" 7 - - 0ms