# Too many redirects traefik with dashboard docker

**URL:** <https://community.traefik.io/t/too-many-redirects-traefik-with-dashboard-docker/12125>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [October 16, 2021, 10:19am UTC](https://community.traefik.io/t/too-many-redirects-traefik-with-dashboard-docker/12125 "2021-10-16T10:19:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamicat](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dynamicat/32/4380_2.png) [@dynamicat](https://community.traefik.io/u/dynamicat)\
**Post date:** [October 16, 2021, 10:19am UTC](https://community.traefik.io/t/too-many-redirects-traefik-with-dashboard-docker/12125/1 "2021-10-16T10:19:45Z")

</div>

I am running traefik in a standalone docker environment on top of Ubuntu 20.04. This is the first stage of a basic test and I cannot even get the dashboard for traefik to load. I see too many redirects in the web console and when I curl the url I get "Moved Permanently"

Here is my config:

docker-compose.yml

```auto
version: "3"

services:
  traefik:
    image: traefik:v2.2
    ports:
      - 80:80
      - 443:443
    restart: always
    networks:
      - web
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - $PWD/traefik.toml:/traefik.toml
      - $PWD/traefik_dynamic.toml:/traefik_dynamic.toml
      - $PWD/acme.json:/acme.json

networks:
  web:
   external: true

```

traefik.toml

```auto
[entryPoints]
  [entryPoints.web]
    address = ":80"
    [entryPoints.web.http.redirections.entryPoint]
      to = "websecure"
      scheme = "https"

  [entryPoints.websecure]
    address = ":443"

[log]
  level = "DEBUG"

[api]
  dashboard = true

[certificatesResolvers.lets-encrypt.acme]
  email = "mail@mymail.com"
  storage = "acme.json"
  
[certificatesResolvers.lets-encrypt.acme.httpChallenge]
  entryPoint = "web"

[providers.docker]
  watch = true
  network = "web"

[providers.file]
  filename = "traefik_dynamic.toml"

```

traefik\_dynamic.toml

```auto
[http.middlewares.simpleAuth.basicAuth]
  users = [
    "admin:$apr1$CyRMtgRl$3vrRo.Fu4WYeHY5KCodh1/"
  ]

[http.routers.api]
  rule = "Host(`monitor.domain.com`)"
  entrypoints = ["websecure"]
  middlewares = ["simpleAuth"]
  service = "api@internal"
  [http.routers.api.tls]
    certResolver = "lets-encrypt"

```

I see nothing in the debug logs that can help. Can anyone help with this because I am lost?

---

<div class="post-metadata">

**Author:** ![dynamicat](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dynamicat/32/4380_2.png) [@dynamicat](https://community.traefik.io/u/dynamicat)\
**Post date:** [October 16, 2021, 11:57am UTC](https://community.traefik.io/t/too-many-redirects-traefik-with-dashboard-docker/12125/2 "2021-10-16T11:57:28Z")

</div>

solved, problem with cloudflare

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [October 19, 2021, 11:58am UTC](https://community.traefik.io/t/too-many-redirects-traefik-with-dashboard-docker/12125/3 "2021-10-19T11:58:06Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
