Help with insecureSkipVerify

I have been trying to set the insecureSkipVerify option, however no matter what I do it seems to be ignored.

I am using traefik 3.5.0 and get the below error in the router:

error building proxy for server URL ``https://<IP>:``<PORT>: getting RoundTripper: servers transport not found skipverify-https@swarm

I have added this label:

traefik.http.services.myapp.loadbalancer.serversTransport=skipverify-https

And this is my traefik.yml:

entryPoints:
  https:
    address: :443
    http:
      middlewares:
        - gzip
      tls:
        certResolver: le
  http:
    address: :80
    http:
      redirections:
        entryPoint:
          to: https
          scheme: https
          permanent: true
  ssh:
    address: :22
certificatesResolvers:
  le:
    acme:
      email: admin@sw.dockerswarm.rocks
      storage: /certificates/acme.json
      tlsChallenge: {}
providers:
  swarm:
    defaultRule: Host(`{{ index .Labels "com.docker.stack.namespace" }}.domain.com`)
    exposedByDefault: false
    network: traefik_public
api:
  dashboard: true
accessLog: {}
metrics:
  prometheus: {}
serversTransports:
  skipverify-https:
    insecureSkipVerify: true

I am new to traefik so any help solving this issue would be greatly appreciated!

Either use it globally in static config (doc):

## Static configuration
serversTransport:
  insecureSkipVerify: true

Or create a named serversTransport in dynamic config and assign it to the service (doc):

## Dynamic configuration
http:
  serversTransports:
    mytransport:
      insecureSkipVerify: true

## Dynamic configuration
http:
  services:
    Service01:
      loadBalancer:
        serversTransport: mytransport
1 Like