Acessing the default certificate store from a service defined in a file provider

So I have traefik providing a self-signed certificate from the default store to a bunch of docker services. I also have 2 services defined in files. They also get the default certificate but generate an error
level=error msg="the router lama@file uses a non-existent resolver: default"

The other service is identical except name, port, and subdomain so I'm omitting it.

My default store is defined in lan_tls.yml:

tls:
  stores:
    default:
      defaultCertificate:
        certFile: /etc/certs/cert.pem
        keyFile: /etc/certs/cert-key.pem

and the service is in lama.yml:

http:
  routers:
    lama:
      service: lama
      tls:
        # Works, but gives level=error msg="the router router_name@file uses a non-existent resolver: default"
        certResolver: default
      rule: "Host(`lama.nix.lan`)"

  services:
    lama:
      loadBalancer:
        servers:
          - url: "http://172.27.111.4:10500"

From reading the documentation, I understand that a default store is not the same as a resolver named "default." Removing the certResolver line though causes Traefik to return 404 page not found
So what is the proper way to refer to the default store from a service defined in a file? My current setup serves the correct certificate but fills the log with an error message. It's really the message I'm looking to resolve.
Thanks!

Just enable TLS in the router tls: {} (yaml, use =true in labels), certresolvers are for LetsEncrypt.

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