Loki gateway not accessible behind traefik ingress

Hello Community,

I’ve setup loki in a K8s Cluster through terraform using Helm Charts (version 3.3.2). The loki gateway service is accessible within the k8s cluster but I get an Error 404 when I try to access it from the internet.
In the cluster we use traefik as ingress controller and I configure ingress in the gateway section of the helm chart values file. Here is my ingress Configuration:

In terrform HCL language:

gateway = {
      ingress = {
        enabled = true
        ingressClassName = "traefik"
        annotations = {
          "traefik.ingress.kubernetes.io/router.tls" = "true"
        }
        hosts = [{
          host = "${var.grafana_host_adress}"
          paths = [{
            path = "/lokigateway"
            pathType = "Prefix"
          }]
        }]
        tls = [{
        secretName = "${var.grafana_host_adress}-cert"
        hosts      = [var.grafana_host_adress]
      }]
    }
  }

should look in yaml syntax like this

gateway:
  ingress:
    enabled: true
    ingressClassName: "traefik"
    annotations: {
      traefik.ingress.kubernetes.io/router.tls: true
    }
    hosts:
      - host: something.example.de
        paths:
          - path: /lokigateway
            pathType: Prefix
    tls:
      - secretName: something.example.de-cert
        hosts:
          - something.example.de

It seems that an nginx in the backgroud reacts when I call the domain with path /lokigateway but I geht en Error 404:

grafik

Does anyone in the Community has experience using loki with traefik as ingress controller?

Thank you

Greetings
julian392