fangli / kibana-authentication-proxy

Hosts the latest kibana3 and elasticsearch behind Google OAuth2, Basic Authentication or CAS Authentication
MIT License
223 stars 66 forks source link

Reverse proxy friendly #20

Open raghur opened 10 years ago

raghur commented 10 years ago

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.

rgarver commented 10 years ago

:+1:

analytically commented 9 years ago

:+1: