Traefik displays 404 even on API & Dashboard

Hi,

I'm new to Traefik and currently trying to play around with it.
Currently I have the issue that no matter what I try I can't get the dashboard to work.

→ /home/aurora-gw/app/traefik version
Version: 2.2.0
Codename: chevrotin
Go version: go1.14.1
Built: 2020-03-25T17:32:57Z
OS/Arch: linux/amd64

I start Traefik like so /home/aurora-gw/app/traefik --configFile=/home/aurora-gw/app/conf/config.toml

my config.toml:


[global]
  checkNewVersion = true
[log]
  level = "DEBUG"

[api]
  dashboard = true
  insecure = false

# Entrypoints definition
[entryPoints]
  [entryPoints.https]
    address = ":443"
    [entryPoints.https.forwardedHeaders]
      trustedIPs = ["127.0.0.1/32", "10.0.0.0/24"]
    [entryPoints.https.proxyProtocol]
      trustedIPs = ["127.0.0.1/32", "10.0.0.0/24"]

[providers.file]
 directory = "/home/aurora-gw/app/conf" 

My dynamic-config.toml:

[tls]
[tls.options]
  [tls.options.default]
    minVersion = "VersionTLS12"
  [tls.options.mintls13]
    minVersion = "VersionTLS13"
[[tls.certificates]]
  store = ["default"]
  certFile = "/home/aurora-gw/certs/aurora-gw.net.ki.crt"
  keyFile = "/home/aurora-gw/certs/aurora-gw.net.ki.pem"

[http.routers.the-api]
  rule = "Host(`aurora-gw.net.ki`)"
  entrypoints= ["https"]
  service = "api@internal"
  middlewares = ["auth"]

  [http.middlewares.auth.basicAuth]
  users = [
    "redacted:$redacted/",
]

However when trying to access the dashboard I get a 404 no matter what I try to change.
I also read through the documentation but at this point I'm not sure what exactly the issue is.

The dynamic config is found as my SSL config gets applied without issues, so that works. Nothing else though.

Do you have any ideas what I did wrong?

Hello,

you have to define the section section in the router configuration:

[http.routers.the-api]
  rule = "Host(`aurora-gw.net.ki`)"
  entrypoints= ["https"]
  service = "api@internal"
  middlewares = ["auth"]
  [http.routers.the-api.tls]

https://docs.traefik.io/v2.2/routing/routers/#tls

Wow, many thanks, that worked!