DeemOpen / zkui

A UI dashboard that allows CRUD operations on Zookeeper.
2.36k stars 977 forks source link

added support for zkui behind a proxy #24

Closed aemrob closed 7 years ago

aemrob commented 7 years ago

zkui ignores the X-Forwarded-For header which is sent by the proxy to indicate the client hostname and protocol, resulting in a redirect to an http: protocol instead of https:

By adding the org.eclipse.jetty.server.ForwardedRequestCustomizer to the http_config this is resolved.

It is enabled by adding:

X-Forwarded-For=true

to the config.cfg.

By default it is set to false, to preserve backward compatibility.