I'm using taefik v2 with docker-compose and i was wondering:
I have a server with a fqdn with a valid SSL certificate for that domain. But it seem possible to access to my server directely with the external IP address and it expose a self-signed certificate.
How can i redirect traffic coming on my ip interface to the fqdn?
I have already try something like this:
Yes that is correct. You can use strict sni checking to prevent this proceeding beyond TLS handshake.
With strict SNI checking enabled, Traefik won't allow connections from clients that do not specify a server_name extension or don't match any certificate configured on the tlsOption.
Your middleware is likely not connected to a router matching the rule for the incoming request.
It would have to have a
PathPrefix rule or a
Thanks you ! this worked:
- certFile: /cert/mycert.crt
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.