Accessing secure dashboard results in 404

I am not using CNAME, but A records.

As for the log, there is no "provider.docker" anywhere to be found.
But I searched for one of the label: the Host rule, or rather only the domain I placed as a rule.

It seems to only appear when I try to connect to the dashboard and it cannot serve the SSL certificate and gives me the self-generated one.

So basically, it might be because none of the labels get recognized.

After a search on google, many people talk about swarm mode that, if enabled, changes the way labels are read. It is not my case.

But also, this post.

It basically says that you cannot have labels and static yaml configuration at the same time.

If so that would explain why it does not work. Does it rings any bells?