Explorar o código

fix(doc): fix neuron url env wrong key

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
Jiyong Huang %!s(int64=2) %!d(string=hai) anos
pai
achega
1431dbddb2

+ 1 - 1
docs/en_US/integrations/neuron/docker-compose.yml

@@ -18,7 +18,7 @@ services:
       KUIPER__BASIC__CONSOLELOG: "true"
       KUIPER__BASIC__IGNORECASE: "false"
       # The default neuron url. Change it if you want to use another port.
-      SOURCES__NEURON__DEFAULT__URL: "tcp://neuron:7081"
+      NEURON__DEFAULT__URL: "tcp://neuron:7081"
     volumes:
       - /tmp/data:/kuiper/data
       - /tmp/log:/kuiper/log

+ 3 - 3
docs/en_US/integrations/neuron/neuron_integration_tutorial.md

@@ -62,7 +62,7 @@ Both Neuron and eKuiper support binary installation packages and Docker containe
             KUIPER__BASIC__CONSOLELOG: "true"
             KUIPER__BASIC__IGNORECASE: "false"
             # The default neuron url. Change it if you want to use another port.
-            SOURCES__NEURON__DEFAULT__URL: "tcp://neuron:7081"
+            NEURON__DEFAULT__URL: "tcp://neuron:7081"
          volumes:
             - /tmp/data:/kuiper/data
             - /tmp/log:/kuiper/log
@@ -88,8 +88,8 @@ Both Neuron and eKuiper support binary installation packages and Docker containe
    To modify the port, you need to modify Neuron's eKuiper northbound application port, as well as the parts of this document that use the port, i.e., Neuron's port exposure and eKuiper's environment variable default connection url section.
    
    > Notes for different version combinations
-   > 1. eKuiper 1.9 onwards can only interface with Neuron versions before 2.4 via ipc, you need to configure `SOURCES__NEURON__DEFAULT__URL: "ipc:///tmp/neuron-ekuiper.ipc"` and enable the configuration of volumes nng-ipc. Neuron does not need to expose port 7081.
-   > 2. eKuiper versions before 1.9 can only interface with Neuron versions before 2.4 via ipc, you need to remove the `SOURCES__NEURON__DEFAULT__URL` environment variable configuration and enable the volumes nng-ipc configuration.
+   > 1. eKuiper 1.9 onwards can only interface with Neuron versions before 2.4 via ipc, you need to configure `NEURON__DEFAULT__URL: "ipc:///tmp/neuron-ekuiper.ipc"` and enable the configuration of volumes nng-ipc. Neuron does not need to expose port 7081.
+   > 2. eKuiper versions before 1.9 can only interface with Neuron versions before 2.4 via ipc, you need to remove the `NEURON__DEFAULT__URL` environment variable configuration and enable the volumes nng-ipc configuration.
    > 3. eKuiper versions before 1.9 and Neuron versions after 2.4 cannot connect directly, but can be relayed through MQTT
    
 2. In the directory where the file is located, run:

+ 1 - 1
docs/zh_CN/integrations/neuron/docker-compose.yml

@@ -18,7 +18,7 @@ services:
       KUIPER__BASIC__CONSOLELOG: "true"
       KUIPER__BASIC__IGNORECASE: "false"
       # The default neuron url. Change it if you want to use another port.
-      SOURCES__NEURON__DEFAULT__URL: "tcp://neuron:7081"
+      NEURON__DEFAULT__URL: "tcp://neuron:7081"
     volumes:
       - /tmp/data:/kuiper/data
       - /tmp/log:/kuiper/log

+ 3 - 3
docs/zh_CN/integrations/neuron/neuron_integration_tutorial.md

@@ -62,7 +62,7 @@ Neuron 和 eKuiper 都支持二进制安装包以及 Docker 容器化部署方
             KUIPER__BASIC__CONSOLELOG: "true"
             KUIPER__BASIC__IGNORECASE: "false"
             # The default neuron url. Change it if you want to use another port.
-            SOURCES__NEURON__DEFAULT__URL: "tcp://neuron:7081"
+            NEURON__DEFAULT__URL: "tcp://neuron:7081"
          volumes:
             - /tmp/data:/kuiper/data
             - /tmp/log:/kuiper/log
@@ -88,8 +88,8 @@ Neuron 和 eKuiper 都支持二进制安装包以及 Docker 容器化部署方
    用户可自定义配置连接端口,本例中为 7081。修改端口时,需要修改 Neuron 的 eKuiper 北向应用端口,同时修改本文件中用到该端口的部分,即 Neuron 的端口暴露和 eKuiper 的环境变量默认连接 url 部分。
 
    > 各版本使用注意事项
-   > 1. eKuiper 1.9 之后版本与 Neuron 2.4 之前版本对接只能通过 ipc,需要配置 `SOURCES__NEURON__DEFAULT__URL: "ipc:///tmp/neuron-ekuiper.ipc"`,并且启用 volumes nng-ipc 的配置。Neuron 无需暴露 7081 端口。
-   > 2. eKuiper 1.9 之前版本与 Neuron 2.4 之前版本对接只能通过 ipc,需要去除 `SOURCES__NEURON__DEFAULT__URL` 环境变量配置并且启用 volumes nng-ipc 的配置。Neuron 无需暴露 7081 端口。
+   > 1. eKuiper 1.9 之后版本与 Neuron 2.4 之前版本对接只能通过 ipc,需要配置 `NEURON__DEFAULT__URL: "ipc:///tmp/neuron-ekuiper.ipc"`,并且启用 volumes nng-ipc 的配置。Neuron 无需暴露 7081 端口。
+   > 2. eKuiper 1.9 之前版本与 Neuron 2.4 之前版本对接只能通过 ipc,需要去除 `NEURON__DEFAULT__URL` 环境变量配置并且启用 volumes nng-ipc 的配置。Neuron 无需暴露 7081 端口。
    > 3. eKuiper 1.9 之前版本与 Neuron 2.4 之后版本无法直接对接,可通过 MQTT 中转。
 2. 在该文件所在目录,运行: