NEWBIE question: how to setup secure endpoint correctly?

Hi,

I have tried the solution given in This thread

But looking the access logs I have found that all requests were forwarded to HTTP endpoint.

172.71.102.165 - - [22/Oct/2024:19:03:31 +0000] "GET / HTTP/1.1" 200 789 "-" "-" 7 "whoami@docker" "http://172.20.0.5:80" 0ms

When the dashboard has 2 entrypoins:

  • https-whoami@docker
  • whoami@docker

I also have modified whoami container configuration so:

  whoami:
    container_name: whoami
    image: traefik/whoami
    depends_on:
      - traefik
    networks:
      - traefik
    labels:
      - traefik.enable=true
      - traefik.http.routers.whoami.rule=Host(`whoami.${DOMAIN}`)
      - traefik.http.routers.whoami.tls=true

So in dashboard the config looks like:

But still getting 404.