# Cannot access dashboard in HTTPS

**URL:** <https://community.traefik.io/t/cannot-access-dashboard-in-https/18988>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [June 17, 2023, 11:14am UTC](https://community.traefik.io/t/cannot-access-dashboard-in-https/18988 "2023-06-17T11:14:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SlaughtY](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/slaughty/32/7255_2.png) [@SlaughtY](https://community.traefik.io/u/SlaughtY)\
**Post date:** [June 17, 2023, 11:14am UTC](https://community.traefik.io/t/cannot-access-dashboard-in-https/18988/1 "2023-06-17T11:14:24Z")

</div>

Hi there,

I'm a beginner to Traeffik and I'm having a few problems accessing the dashboard/API. I wanted to make these accessible only in HTTPS using a wildcard certificate, but the dashboard is not accessible in HTTPS using [example.com/dashboard](http://example.com/dashboard) (_or /api_), and in HTTP it returns a 404 error 🤔...

Although I've activated the logs, I can't get any results...

I'm assuming that an error is present in my configuration, but I can't seem to locate it.  
_Last and maybe not least, I'm using Container Station 3_

Here's an overview of my compose:

```auto
version: '3.3'

services:
  traefik:
    image: "traefik:latest"
    restart: always
    networks:
    - traefik_network
    ports:
    - "80:80"
    - "443:443"
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock:ro
    - /share/CACHEDEV1_DATA/config/traefik/traefik-config.yml:/traefik-config.yml:ro
    - /share/CACHEDEV1_DATA/config/traefik/traefik-dynamic.yml:/traefik-dynamic.yml:ro
    -/share/CACHEDEV1_DATA/acme/*.exemple.com:/etc/certs/wildcard:ro
    - /share/CACHEDEV1_DATA/log/traefik:/var/log/traefik
    labels:
    - "traefik.enable=true"
    - "traefik.http.routers.api.rule=Host(`${TRAEFIK_DOMAIN}`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
    - "traefik.http.routers.api.service=api@internal"
    - "traefik.http.routers.api.middlewares=auth"
    - "traefik.http.middlewares.auth.basicauth.usersfile=${TRAEFIK_AUTH_USER}:${TRAEFIK_AUTH_PASSWORD}"
    - "traefik.http.routers.api.tls=true"
    - "traefik.http.routers.api.entrypoints=https"
    environment:
    - TRAEFIK_DOMAIN=${TRAEFIK_DOMAIN}
    - TZ=${TZ}
    - PUID=${TRAEFIK_UID}
    - PGID=${TRAEFIK_GID}

networks:
  traefik_network:

```

As well as my configuration file:  
traefik-config.yml

```auto
log:
  level: DEBUG
  filePath: "/var/log/traefik/traefik.log"

api:
  dashboard: true
  insecure: false

entryPoints:
  http:
    address: ":80"
    http:
      redirections:
        entryPoint:
          to: https
          scheme: https
  https:
    address: ":443"

providers:
  file:
    filename: /traefik-dynamic.yml
    watch: true
  docker:
    watch: true
    exposedByDefault: false
    endpoint: "unix:///var/run/docker.sock"

```

traefik-dynamic.yml

```auto
tls:
  certificates:
    - certFile: "/etc/certs/wildcard/*.exemple.com.cer"
      keyFile: "/etc/certs/wildcard/*.exemple.com.key"

```

Looking forward to any help that can be provided !  
Thanks

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [June 17, 2023, 7:15pm UTC](https://community.traefik.io/t/cannot-access-dashboard-in-https/18988/2 "2023-06-17T19:15:59Z")

</div>

You need to mount `traefik.yml` to one of the expected places or tell Traefik via `command: --configFile=/path/traefik.yml` the location. ([Doc](https://doc.traefik.io/traefik/getting-started/configuration-overview/#configuration-file))

---

<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:** [June 26, 2023, 8:22pm UTC](https://community.traefik.io/t/cannot-access-dashboard-in-https/18988/3 "2023-06-26T20:22:10Z")

</div>

Closed on June 26, 2023, 8:22pm UTC

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