Noop@internal service

Hi, I was looking at my Traefik dashboard, and I found a new service called noop@internal.


So I tried hooking that service into my global HTTP to HTTPS redirection router like this:

http:
  routers:
    redirect:
      rule: HostRegexp(`{host:.+}`)
      entryPoints:
        - http
      service: noop@internal
      middlewares:
        - redirect
  middlewares:
    redirect:
      redirectScheme:
        scheme: https

And it works.
My question is:
Is this internal service intended to be used like that?

Thanks.

Hello,

yes, the noop@internal service has been made to be used with redirection.

FYI you can use new redirection system: https://docs.traefik.io/v2.2/routing/entrypoints/#redirection

Im trying to move from entrypoint redirction to IngressRoute redirection, because I need to exclude a domain/host from this. Is there any way to do this via static configuration?

My current approach is not working:

---
# http to https
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: traefik-http-redirect
  namespace: ingress
spec:
  entryPoints:
    - web
  routes:
    - match: HostRegexp(`.*`)
      kind: Rule
      priority: 99
      services:
        - name: noop@internal
      middlewares:
        - name: ingress-https-redirect