Traefik 2 certificate self signed auto generated

Hi,

This is my docker-compose file

version: '3.7'

services:
  traefik:
    image: "traefik:2.1"
    container_name: "traefik"
    command:
      - "--log.level=DEBUG"
      - "--api=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.http.address=:80"
      - "--entryPoints.https.address=:443"
      - "--accessLog"
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
      - "/root/traefik/certs:/etc/certs:ro"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.traefik.rule=Host(`traefik.${DOCKER_DOMAIN}`)"
      - "traefik.http.routers.traefik.service=api@internal"
      - "traefik.http.routers.traefik.middlewares=admin"
      - "traefik.http.routers.traefik.entrypoints=https"
      - "traefik.http.middlewares.admin.basicauth.users=${basicauth}"
    networks:
      external_network:

networks:
  external_network:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 100.100.98.0/24

When I try to access the dashboard on https://traefik.mydomain.local I got error about certificate.

time="2020-01-29T05:20:49Z" level=debug msg="Serving default certificate for request: \"traefik.mydomain.local\""
time="2020-01-29T05:20:49Z" level=debug msg="http: TLS handshake error from 10.37.196.126:61871: remote error: tls: unknown certificate"
time="2020-01-29T05:20:49Z" level=debug msg="Serving default certificate for request: \"traefik.mydomain.local\""
time="2020-01-29T05:20:49Z" level=debug msg="http: TLS handshake error from 10.37.196.126:61875: remote error: tls: unknown certificate"
time="2020-01-29T05:20:53Z" level=debug msg="Serving default certificate for request: \"traefik.mydomain.local\""
time="2020-01-29T05:20:53Z" level=debug msg="http: TLS handshake error from 10.37.196.126:61900: remote error: tls: unknown certificate"
time="2020-01-29T05:20:53Z" level=debug msg="Serving default certificate for request: \"traefik.mydomain.local\""
10.37.196.126 - - [29/Jan/2020:05:20:53 +0000] "GET /dashboard HTTP/2.0" - - "-" "-" 15 - - 0ms
10.37.196.126 - - [29/Jan/2020:05:20:53 +0000] "GET /favicon.ico HTTP/2.0" - - "-" "-" 16 - - 0ms

The dashboard not work. Someone can help me please. I tought traefik will generate a certificate automaticaly. For now I don't need a good certificate.

Thx in advance!

Hello,

I'm not sure, but can you try to add a label like this:

- "traefik.http.routers.traefik.tls={}"

to specify traefik have to terminate TLS request (see https://docs.traefik.io/routing/routers/#tls).

Could you clarify what is the error about your certificate when trying to connect to https://traefik.mydomain.local?

Regards,

jmc

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

Hi,

If you want traefik generate automatically a certificate, why you map volume
"/root/traefik/certs:/etc/certs:ro" ? And why in read-only ?

Have you try to temporarily add entrypoint http to traefik service and use api insecure command
- --api.insecure. And have you try to deactivate middleware basicAuth ?

Try to turn your config as simple as possible and check the insecure dashboard, step by step, you can get some important information to debug your config.

May be you can try to follow this article: https://containo.us/blog/traefik-2-0-docker-101-fc2893944b9d/

Regards,

jmc

1 Like