Questions about the redirect from http to https

as an example:

running an https service on port 8443
need to redirect http traffic to https protocol like
http://my_domain:8443/ --> https://my_domain:8443/
the following configurations does not work

---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: http2https
spec:
  redirectRegex:
    regex: ^http://(.*)
    replacement: https://${1}
    permanent: true
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: http2https
spec:
  routes:
    - match: HostRegexp(`{host:.+}`)
      kind: Rule
      middlewares:
        - name: http2https
      services:
        - name: noop@internal
          kind: TraefikService

later I found out that it works properly after removing the following parameters (including other related parameters)

--entrypoints.websecure.http.tls

and explicitly add the following configuration to EVERY ingressroute except the "http2https"

  tls:
    certResolver: [my_resolver_name]
    domains:
    - main: "my_domain"

this works but I wish it could be more concise

for example, implement the following configuration to enable it to capture http traffic

  tls:
    - enable: false

(or is it just because I misconfigured something?)
(or other existing implementations?)

thx