qiuxiafei / zk-web

A web UI for zookeeper
500 stars 153 forks source link

Add base url #31

Open thorhs opened 7 years ago

thorhs commented 7 years ago

I've created a small patch to add the option of a base URL. I'm running behind a reverse proxy and found this lacking.

This was a simple two line code, and I have verified manually that it works with or without the base-url option in the config file. I've never touched clojure before, and I fear I may be calling the load_config twice. That is fine by me since it is only done at startup, but should probably be optimised.

This patch addresses #28

thorhs commented 7 years ago

Hmm, created a pull request too soon. Apparently some further code changes are needed.

I only tried to front page which works fine, but once I hit the 'GO' button, it fails.