cjmamo / kafka-web-console

A web console for Apache Kafka (retired)
Apache License 2.0
762 stars 246 forks source link

topic feed do not work over https #61

Open ediskandarov opened 9 years ago

ediskandarov commented 9 years ago

subj

streamnsight commented 9 years ago

i tried replacing ws:// with wss:// in the javascript, and it fixed some of it (zk list etc...) but not the feed or graphs / consumer groups. I get a 400 bad request answer from the server but no error in the logs

streamnsight commented 9 years ago

I actually found that the problem was due to the need to upgrade the connection in nginx (the proxy I use)

So after upgrading the connection to use websocket

WebSocket support (nginx 1.4)

    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";

and also making sure the load balancer uses IP affinity server { ip_hash; server domain.com:port; }

i can see the feed.

still no luck with the consumer but i think that is a kafka problem