Check for X-Forwarded-Host so that kibana-authentication-proxy itself can be hosted behind a reverse proxy.
Also found a problem where the proxied request will result in a call to ES with http Connection header set to 'close'. ES will error out with a ECONNRESET at that sometimes.
Default behavior (w/o proxy) seems to be set 'Connection: keep-alive' - so setting that explicitly.
Check for X-Forwarded-Host so that kibana-authentication-proxy itself can be hosted behind a reverse proxy.
Also found a problem where the proxied request will result in a call to ES with http Connection header set to 'close'. ES will error out with a ECONNRESET at that sometimes.
Default behavior (w/o proxy) seems to be set 'Connection: keep-alive' - so setting that explicitly.