I think I'm making a very basic mistake here, but I'm not clear what it could be. Essentially I'm attempting to setup traefik to listen for incoming https requests and then route (depending on the hostname) to a certain backend server. (and pass through the TLS).
eg client connects to htts://srv1.localho.st:8443 and I want traefikl to route that to https://srv1.localho.st:9000 srv2.localho.st:8433 to srv2.localho.st:9500
I believe the configuration is not being properly loaded, as I can get traefik to listen on port 8443 but no other TLS configuration appears to be accepted. The error "No Default Certificate Found"
CLI ~/traefik --providers.file.filename=traefik/config.yaml --configFile=traefik/traefik.yaml
log: level: DEBUG providers: file: filename: "/home/matthew/github.com/ampretia/tls-expr/traefik/config.yaml" watch: true
entryPoints: websecure: address: ":8443" tls: options: opt1: passthrough: true stores: default: defaultCertificate: certFile: "/home/matthew/github.com/ampretia/tls-expr/proxy.crt" keyFile: "/home/matthew/github.com/ampretia/tls-expr/proxy.key" http: routers: Router-1: rule: "Host('srv1.localho.st')" service: my-service tls: options: opt1 services: my-service: loadBalancer: serversTransports: transport_host servers: - url: "https://localho.st:9443" serversTransports: transport_host: insecureSkipVerify: true log: level: DEBUG providers: file: filename: "/home/matthew/github.com/ampretia/tls-expr/traefik/config.yaml" watch: true
Many thanks for any pointers