Run traefik behind traefik reverse proxy

Thank you, this post has helped a lot.
In my case I wanted to use the certResolver of Traefik2. For this you have to forward the HTTP traffic as described here. It is also important to increase the priority of the rules in dynamic.yml, so that the HTTP requests are not intercepted. this script allows you to view the priorities of your rules.

this is the modified dynamic.yml:

http:
  routers:
    web_to_traefik2:
      entryPoints:
        - "web"
      rule: Host({{ env "TAEAFIK2_HOST" }})
      service: traefik2_web
      priority: 2147483649

  services:
    traefik2_web:
      loadBalancer:
        servers:
          - url: "http://$TAEAFIK2_HOST"
        passHostHeader: true

tcp:
  routers:
    websecure_to_traefik2:
      entrypoints:
        - "websecure"
      rule: HostSNI({{ env "TAEAFIK2_HOST_SNI" }})
      tls:
        passthrough: true
      service: traefik2_websecure
      priority: 2147483648

  services:
    traefik2_websecure:
      loadBalancer:
        servers:
          - address: {{ env "TRAEFIK2_NET1_ADDRESS" }}