Setup Basic Auth Loki

Hi There,

I have installed loki in my client to monitoring logs.
how to config for enable basic auth?

This is my config

auth_enabled: true

server:
  http_listen_port: 3100
  grpc_listen_port: 9096
  auth_config:
    basic_auth:
      enabled: true
      users_file: /etc/loki/.htpasswd

common:
  path_prefix: /etc/loki
  storage:
    filesystem:
      chunks_directory: /etc/loki/chunks
      rules_directory: /etc/loki/rules
  replication_factor: 1
  ring:
    instance_addr: 0.0.0.0
    kvstore:
      store: inmemory

schema_config:
  configs:
    - from: 2020-10-24
      store: boltdb-shipper
      object_store: filesystem
      schema: v11
      index:
        prefix: index_
        period: 24h

ruler:
  alertmanager_url: http://localhost:9093