From e84aea81f8611fbcc1f27e3ec1d1696a5d993405 Mon Sep 17 00:00:00 2001 From: Steven Zhang Date: Mon, 9 Sep 2019 15:26:22 -0700 Subject: [PATCH] fix: revert ipv6 address and update docs --- config/ksql-server.properties | 7 +++++-- docs/installation/installing.rst | 2 +- docs/installation/server-config/config-reference.rst | 10 +++++++--- docs/tutorials/docker-compose.yml | 2 +- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/config/ksql-server.properties b/config/ksql-server.properties index 277ae9da52f5..972f0ec112d3 100644 --- a/config/ksql-server.properties +++ b/config/ksql-server.properties @@ -17,8 +17,11 @@ ### HTTP ### # The URL the KSQL server will listen on: -# The default is any IPv4 or IPv6 interface on the machine. -listeners=http://0.0.0.0:8088,http://[::]:8088 +# The default is any IPv4 interface on the machine. +listeners=http://0.0.0.0:8088 + +# Use the 'listeners' line below for any IPv6 interface on the machine. +# listeners=http://[::]:8088 ### HTTPS ### # To switch KSQL over to communicating using HTTPS comment out the 'listeners' line above diff --git a/docs/installation/installing.rst b/docs/installation/installing.rst index efd853b95121..64d9670e632f 100644 --- a/docs/installation/installing.rst +++ b/docs/installation/installing.rst @@ -81,7 +81,7 @@ Follow these instructions to start KSQL server using the ``ksql-server-start`` s :: bootstrap.servers=localhost:9092 - listeners=http://0.0.0.0:8088,http://[::]:8088 + listeners=http://0.0.0.0:8088 For more information, see :ref:`ksql-server-config`. diff --git a/docs/installation/server-config/config-reference.rst b/docs/installation/server-config/config-reference.rst index 35790e89ab16..ee2d0022be87 100644 --- a/docs/installation/server-config/config-reference.rst +++ b/docs/installation/server-config/config-reference.rst @@ -356,13 +356,17 @@ listeners The ``listeners`` setting controls the REST API endpoint for the KSQL server. For more info, see :ref:`ksql-rest-api`. -The default ``listeners`` is ``http://0.0.0.0:8088,http://[::]:8088``, which binds to all IPv4 and IPv6 interfaces. +The default ``listeners`` is ``http://0.0.0.0:8088``, which binds to all IPv4 interfaces. +Set ``listeners`` to ``http://[::]:8088`` to bind to all IPv6 interfaces. Update this to a specific interface to bind only to a single interface. For example: :: - # Bind to all interfaces, (both IPv4 and IPv6). - listeners=http://0.0.0.0:8088,http://[::]:8088 + # Bind to all IPv4 interfaces. + listeners=http://0.0.0.0:8088 + + # Bind to all IPv6 interfaces. + listeners=http://[::]:8088 # Bind only to localhost. listeners=http://localhost:8088 diff --git a/docs/tutorials/docker-compose.yml b/docs/tutorials/docker-compose.yml index 55f493a2bf47..b98031a0d87e 100644 --- a/docs/tutorials/docker-compose.yml +++ b/docs/tutorials/docker-compose.yml @@ -45,6 +45,6 @@ services: - schema-registry environment: KSQL_BOOTSTRAP_SERVERS: kafka:39092 - KSQL_LISTENERS: http://0.0.0.0:8088,http://[::]:8088 + KSQL_LISTENERS: http://0.0.0.0:8088 KSQL_KSQL_SCHEMA_REGISTRY_URL: http://schema-registry:8081