Add basic HTTP access auth via HAProxy

userlist UsersForES
  user your_username insecure-password your_password
frontend elasticsearch_pwd
    bind *:9201
    mode http
    default_backend es-nodes_pwd
backend es-nodes_pwd
    acl AuthOkay_ES http_auth(UsersForES)
    http-request auth realm ES if !AuthOkay_ES
    mode http
    balance roundrobin
    option forwardfor
    server check
    server check
    server check

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.