Question
Config nifi behind haproxy
I want to config haproxy as LB for nifi web. My nifi cluster is configured using self certificate. When accessing to nifi web, I got the error user unauthorization. Here is my config:
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
stats socket /var/lib/haproxy/stats
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
timeout http-request 10s
timeout http-keep-alive 10
frontend nifi
bind *:80
mode http
default_backend nifi
http-request set-header X-ProxyScheme http
http-request set-header X-ProxyHost %[hdr(host)]
http-request set-header X-ProxyPort 80
http-request set-header X-Forwarded-For %[src]
http-request set-header X-Forwarded-Proto http
backend nifi
mode http
server nifi01 10.29.144.56:8443 ssl verify none
server nifi02 10.29.144.57:8443 ssl verify none
server nifi03 10.29.144.58:8443 ssl verify nonenifi.web.proxy.host=10.29.144.56

