Cannot start the provider - all services gives an 404

I added one more service to my fileConfig (emby) and that seems to have broken it... after that I get this error:

level=error msg="Cannot start the provider *file.Provider: /configs/external.yml: yaml: line 16: did not find expected key"

This is my external.yml:

http:
  routers:
    unifi-https:
      entryPoints:
        - "https"
      rule: Host(`unifi.domain.io`)
      tls: {}
      service: "unifi"

    plex-https:
      entryPoints:
        - "https"
      rule: Host(`plex.domain.io`)
      tls: {}
      service: "plex"

   emby-https:
      entryPoints:
        - "https"
      rule: Host(`emby.domain.io`)
      tls: {}
      services: "emby" 

  services:
    unifi:
      loadBalancer:
        servers:
          - url: "https://10.0.0.20:8443/"

    plex:
      loadBalancer:
        servers:
          - url: "http://10.0.0.92:32400/"

    emby:
      loadBalancer:
        servers:
          - url: "http://10.0.0.92:8096/"

#headers
  middlewares:
    https-redirect:
      redirectScheme:
        scheme: https
  
    default-headers:
      headers:
        frameDeny: true
        sslRedirect: true
        browserXssFilter: true
        contentTypeNosniff: true
        forceSTSHeader: true
        stsIncludeSubdomains: true
        stsPreload: true
        stsSeconds: 15552000
        customFrameOptionsValue: SAMEORIGIN
        customRequestHeaders:
          X-Forwarded-Proto: https

    crowdsec-bouncer:
      forwardauth:
        address: http://bouncer-traefik:8080/api/v1/forwardAuth
        trustForwardHeader: true

    default-whitelist:
      ipWhiteList:
        sourceRange:
        - "10.0.0.0/8"
        - "192.168.0.0/16"
        - "172.16.0.0/12"

    secured:
      chain:
        middlewares:
        - default-whitelist
        - default-headers

What have I done? :slight_smile:

There is an invalid indentation in line 16. Once it will be fixed Traefik should load and process the configuration file you have created.

Strange I do not see it... it can be that I am tired and it is late were I am. :slight_smile:
traefik

I removed the emby parts of this file, restarted Traefik.
The other services started to work. Repeated how I added Emby once more, by copying, this time, the Unifi part. Now it is working. Looking exactly the same.

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