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.34k stars 646 forks source link

Can't set host/port since upgrading to micronaut #33

Closed johnseekins closed 5 years ago

johnseekins commented 5 years ago

If I want this tool to listen on say, 0.0.0.0 or a different port, how do I actually set that? The docs don't seem to mention anything. And currently, I'm stuck only listening on localhost, which makes it hard to use.

tchiotludo commented 5 years ago

If think you can use this parameters : https://docs.micronaut.io/1.1.0.M1/guide/configurationreference.html#io.micronaut.http.server.HttpServerConfiguration

especially : micronaut.server.port and micronaut.server.host to change this configuration ?

What seems weird is by default micronaut listen on 0.0.0.0.

johnseekins commented 5 years ago
root@dlt-logging-kafka-1:/opt/kafkahq# cat /opt/kafkahq/kafkahq.yml 
kafkahq:
  micronaut:
    server:
      port: 9090
      host: "0.0.0.0"
  clients-defaults:
    consumer:
      properties:
        isolation.level: read_committed
  connections:
    logging-kafka:
      properties:
        bootstrap.servers: "10.40.250.5:9092,10.40.250.6:9092,10.40.250.7:9092"
root@dlt-logging-kafka-1:/opt/kafkahq# MICRONAUT_CONFIG_FILES=/opt/kafkahq/kafkahq.yml java -jar /opt/kafkahq/kafkahq.jar prod
2019-02-25 11:57:49,353 INFO  main       i.m.runtime.Micronaut      Startup completed in 2588ms. Server Running: http://localhost:8080

Doesn't seem that way.

tchiotludo commented 5 years ago

It's micronaut config so no need for the kafkahq prefix : Your config must look like this :

micronaut:
  server:
    port: 9090
    host: "0.0.0.0"
kafkahq:
  clients-defaults:
    consumer:
      properties:
        isolation.level: read_committed
  connections:
    logging-kafka:
      properties:
        bootstrap.servers: "10.40.250.5:9092,10.40.250.6:9092,10.40.250.7:9092"
johnseekins commented 5 years ago

Oh. Duh. That did it.

Thanks!