In the docker-compose with the cli command of - "--serversTransport.insecureSkipVerify=true"
I can reach the external host. But what I cant figure out is how to use ServerTransport and using insecureSkipVerify on specific hosts rather than using the global option? Stuck with an error of Internal Server Error
caused by: x509: cannot validate certificate for 192.168.10.10 because it doesn't contain any IP SANs"
dynamic config:
http:
middlewares:
test-auth:
basicAuth:
usersFile: "/rules/htpasswd"
test-ratelimit:
rateLimit:
average: 100
burst: 50
idrac:
headers:
frameDeny: true
sslRedirect: true
browserXssFilter: true
forceSTSHeader: true
stsIncludeSubdomains: true
stsSeconds: 15552000
customFrameOptionsValue: SAMEORIGIN
customRequestHeaders:
X-Forwarded-Proto: https
routers:
idrac1:
rule: "Host(`idrac1.my.domain`)"
priority: 1000
entryPoints:
- websecure
middlewares:
- idrac
service: idrac1
tls:
certResolver: myresolver
services:
idrac1:
loadBalancer:
servers:
- url: "https://192.168.10.10:443" # or whatever your external host's IP:port is
passHostHeader: true
# sticky:
# cookie:
# name: "__Secure-idrac1.my.domain"
# secure: true
# httpOnly: true
# sameSite: "none"
serversTransports:
mytransport:
serverName: "idrac1.my.domain"
# serverName: "192.168.10.10"
insecureSkipVerify: true