Hi everyone! First, thanks to the team for the great product! Second: could someone help please, Im trying to handle the case, where some subdomain should get certificate from lets encrypt, and some should just passthrough the traffic for 80 port (as I understand) for internal win-acme bot. So, for example, I want to handle certificate for subdomain.contoso.com for rdp server on windows machine itself, so I'm setting up like:
static config:
entryPoints:
web:
address: ":80" # HTTP entry point
websecure:
address: ":443" # HTTPS entry point
rdp:
address: ":3389" # RDP
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
file:
filename: "/etc/traefik/traefik_dynamic.yml"
watch: true
certificatesResolvers:
letsencrypt:
acme:
email: ######################
storage: "/acme/acme.json"
httpChallenge:
entryPoint: web
log:
level: DEBUG
dynamic config:
tcp:
routers:
rdp-router:
rule: "HostSNI(`subdomain.contoso.com`)"
entryPoints:
- rdp
tls:
passthrough: true
service: rdp-service
services:
rdp-service:
loadBalancer:
servers:
- address: "someip:3389"
http:
routers:
acme-challenge-router-for-wacs:
rule: "Host(`subdomain.contoso.com`)"
entryPoints:
- web
service: acme-challenge-service-for-wacs
services:
acme-challenge-service-for-wacs:
loadBalancer:
servers:
- url: "http://someip:80"
But it looks like traefik still trying to get certificate for subdomain.contoso.com. How to disable it and passthrough correctly 80 port also? Alos, when I played around with settings, when I run win-acme, I got in the log of traefik:
Unable to split host and port. Fallback to request host. error="address subdomain.contoso.com: missing port in address" providerName=acme
And it looks like traefik intercepting acme request also? So I confused and stuck, please help. Thanks in advance.