[loki-simple-scalable] Configuring basic auth causes the gateway to timeout

Hello,

We’re trying to deploy loki-simple-scalable using helm on our K8s cluster. We deployed it without modifying the charts file and when trying to connect grafana to it we had an authentication error which is normal I guess since we did not configure any.

After that we configured the charts like this:

...
gateway:
  # -- Specifies whether the gateway should be enabled
  enabled: true
  # Gateway ingress configuration
  ingress:
    # -- Specifies whether an ingress for the gateway should be created
    enabled: true
    # -- Ingress Class Name. MAY be required for Kubernetes versions >= 1.18
    ingressClassName: nginx

    # -- Hosts configuration for the gateway ingress
    hosts:
      - host: loki-gateway.example.com
        paths:
          - path: /
            # -- pathType (e.g. ImplementationSpecific, Prefix, .. etc.) might also be required by some Ingress Controllers
            pathType: Prefix
    # -- TLS configuration for the gateway ingress
    tls:
      - secretName: loki-gateway-tls
        hosts:
          - loki-gateway.example.com
  basicAuth:
    # -- Enables basic authentication for the gateway
    enabled: true
    # -- The basic auth username for the gateway
    username: username
    # -- The basic auth password for the gateway
    password: password

But since the gateway is greeting us with an error 504 - Timeout. Did we do something false ? How to configure loki’s gateway for grafana access ?

Thanks in advance

EDIT: This is the output of the gateway container:

10.253.3.1 - - [09/Jun/2022:09:25:37 +0000]  200 "GET / HTTP/1.1" 2 "-" "kube-probe/1.19" "-" 
10.253.3.1 - - [09/Jun/2022:09:25:47 +0000]  200 "GET / HTTP/1.1" 2 "-" "kube-probe/1.19" "-"
10.253.3.1 - - [09/Jun/2022:09:25:57 +0000]  200 "GET / HTTP/1.1" 2 "-" "kube-probe/1.19" "-"