# Not able to access dashboard - Secure Mode

**URL:** <https://community.traefik.io/t/not-able-to-access-dashboard-secure-mode/5635>\
**Category:** Traefik v2\
**Tags:** dashboard-api, docker\
**Created:** [April 22, 2020, 9:10am UTC](https://community.traefik.io/t/not-able-to-access-dashboard-secure-mode/5635 "2020-04-22T09:10:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daw87](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@daw87](https://community.traefik.io/u/daw87)\
**Post date:** [April 22, 2020, 9:10am UTC](https://community.traefik.io/t/not-able-to-access-dashboard-secure-mode/5635/1 "2020-04-22T09:10:56Z")

</div>

Hi!  
I am new to Traefik and I already fail at the very first steps. I am trying to get the dashboard working with the secure configuration but I am unsuccessful. The insecure version is working.  
Here are my docker-compose.yaml und the traefik.toml:

```auto
version: "3.3"
services:
  traefik:
    image: "traefik:latest"
    container_name: "traefik"
    ports:
      - "8080:8080"
      - "80:80"
    networks:
      - "proxy"
    command:
      - "--providers.docker=true"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "/home/test/traefik/traefik.toml:/traefik.toml"
      - "/home/test/traefik/logs:/logs"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.api.rule=Host(`router.domain.com`)"
      - "traefik.http.routers.api.service=api@internal"
      - "traefik.http.routers.api.middlewares=api-auth"
      - "traefik.http.middlewares.api-auth.basicauth.users=admin:$$apr1$$k.xT.Eq0$$cvQcAlA2g8couVSCZotNp/"
    restart: always

networks:
  proxy:
    external: true

```

```auto
[global]
  checkNewVersion = true

[log]
  filePath = "/logs/traefik.log"
  level = "INFO"

[accessLog]
  filePath = "/logs/access.log"
  bufferingSize = 100

[api]
  dashboard = true

```

If I try to connect to "[router.domain.com](http://router.domain.com)" nothing happens.

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [April 22, 2020, 10:09am UTC](https://community.traefik.io/t/not-able-to-access-dashboard-secure-mode/5635/2 "2020-04-22T10:09:54Z")

</div>

Hello,

> There are three different, **mutually exclusive** (e.g. you can use only one at the same time), ways to define static configuration options in Traefik:

> **[Traefik Configuration Documentation - Traefik](https://doc.traefik.io/traefik/v2.2/getting-started/configuration-overview/)**
>
> Get started with Traefik Proxy. This page will introduce you to the dynamic routing and startup configurations. Read the technical documentation.

So either you use a file or you use CLI flags but not both.

```auto
version: '3.3'
services:
  traefik:
    image: traefik:latest
    container_name: traefik
    ports:
      - 8080:8080
      - 80:80
    networks:
      - proxy
    command:
      - --global.checkNewVersion=true
      - --providers.docker=true
      - --api
      - --log.filePath=/logs/traefik.log
      - --log.level=INFO
      - --accessLog.filePath=/logs/access.log
      - --accessLog.bufferingSize=100
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /home/test/traefik/logs:/logs
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.api.rule=Host(`router.domain.com`)"
      - "traefik.http.routers.api.service=api@internal"
      - "traefik.http.routers.api.middlewares=api-auth"
      - "traefik.http.middlewares.api-auth.basicauth.users=admin:$$apr1$$k.xT.Eq0$$cvQcAlA2g8couVSCZotNp/"
    restart: always

networks:
  proxy:
    external: true

```

---

<div class="post-metadata">

**Author:** ![daw87](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@daw87](https://community.traefik.io/u/daw87)\
**Post date:** [April 22, 2020, 4:52pm UTC](https://community.traefik.io/t/not-able-to-access-dashboard-secure-mode/5635/3 "2020-04-22T16:52:23Z")

</div>

@ldez: Thank you so much, that did the trick!  
Actually, as a new user to Traefik, I am a little bit confused about all the different configuration options. Not only that many howtos on the internet still refer to v1 config examples but also in v2 it is very difficult for me to understand which config/file/provider does what and what are the constraints.  
But I guess I just need the read the documentation more carefully 😉
