How to specify host name/header for service with docker provider, for the purpose of certificate checking?

I voiced this problem already at github, and I'd like to check if I'm missing something obvious.

When calling a service via TLS, if we use docker labels there is no way to specify the host name used in the HTTP(S) request. Underneath traefik will always use IP address. For file provider, where you specify the whole URL it is possible.

As a result, in docker labels scenario, it is impossible to work with a TLS service, unless you specify insecureSkipVerify, which is... well... insecure.

A possible work around would be to use file provider instead of docker provider for those services, but this seems needlessly complicated.

Is there anything I'm missing?