Hello,
I am trying to use traefik to handle https to my activemq container. Traefik currently contains a certificate with a domain name like "domain.com" but I would like to send requests to the ip address of the host server and have traefik use the domain.com certificate.
If I send a curl request to the ip address:
curl -vvv -d 'body="Hello World"' https://10.160.1.12/api/message/test
I get this response:
curl: (51) SSL: no alternative certificate subject name matches target host name '10.160.1.12'
If I use --resolve or --connect-to it does work:
curl -vvv --resolve domain.com:443:10.160.1.12 -d 'body="Hello World"' https://domain.com/api/message/test
Is there any way for traefik to take this ip address and match it to the domain name without using the --resolve option?
I am using a http router like this:
[http.routers.secureactivemq-router]
entrypoints = ["websecure"]
rule = "(Host(`domain.com`) || Host(`10.160.1.12`) ) && PathPrefix(`/api/message`)"
service = "activemq-8161"
[http.routers.secureactivemq-router.tls]