tchiotludo / akhq

Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
https://akhq.io/
Apache License 2.0
3.39k stars 655 forks source link

Setting base-path breaks KafkaHQ #44

Closed joekohlsdorf closed 5 years ago

joekohlsdorf commented 5 years ago

I am running behind a reverse proxy so I put the following into my config as documented:

    kafkahq:
      server:
        base-path: "https://kafkahq.example.com"

When opening KafkaHQ I get redirected to the login page and CSS/JS doesn't load (401 Unauthorized). I haven't setup any users so I shouldn't get redirected to the login page.

I removed base-path from my config and everything started working fine, even behind the proxy. I suggest to simply remove this instruction from the documentation.

tchiotludo commented 5 years ago

added this to be more explicit about this configuration variable :

    base-path: "" # if behind a reverse proxy, path to kafkahq with trailing slash (optionnal). Example: kafkahq is
                  # behind a reverse proxy with url http://my-server/kafkahq, set base-path: "/kafkahq/".
                  # Not needed if you're behind a reverse proxy with subdomain http://kafkahq.my-server/