From 11a1c2f5aeb5c9dfcc195f716947dda45381a2e4 Mon Sep 17 00:00:00 2001 From: hxy7yx <1595670487@qq.com> Date: Thu, 1 Aug 2024 14:05:08 +0800 Subject: [PATCH] update launch configuration options --- en_US/admin/conf-management.md | 12 ++++++++---- zh_CN/admin/conf-management.md | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/en_US/admin/conf-management.md b/en_US/admin/conf-management.md index b3231a2e..93a5a0ee 100644 --- a/en_US/admin/conf-management.md +++ b/en_US/admin/conf-management.md @@ -20,16 +20,20 @@ Neuron supports reading environment variables during the startup process to conf | NEURON_DISABLE_AUTH | Set to 1, Neuron turns off Token authentication and authentication; set to 0, Neuron turns on Token authentication and authentication | | NNEURON_CONFIG_DIR | Neuron configuration file directory | | NEURON_PLUGIN_DIR | Neuron plug-in file directory | +| NEURON_SUB_FILTER_ERROR | Set to 1, the 'subscribe' attribute only detects the normal value read last time, and does not report any error codes to north apps| ## Configuration File -Neuron provides json format configuration files to configure Neuron-related personalized parameters. Currently, it supports three configuration items: ip, port and disable_auth. The configuration file path is the neuron installation directory config/neuron.json. The default configuration content is as follows: +Neuron provides json format configuration files to configure Neuron-related personalized parameters. The configuration file path is the neuron installation directory config/neuron.json. The default configuration content is as follows: ```json { - "ip": "0.0.0.0", - "port": 7000, - "disable_auth": 0 + "ip": "0.0.0.0", + "port": 7000, + "disable_auth": 0, + "syslog_host": "", + "syslog_port": 541, + "sub_filter_error": 0 } ``` diff --git a/zh_CN/admin/conf-management.md b/zh_CN/admin/conf-management.md index 9c7f0cef..38378143 100644 --- a/zh_CN/admin/conf-management.md +++ b/zh_CN/admin/conf-management.md @@ -20,15 +20,19 @@ Neuron 支持在启动过程中读取环境变量来配置启动参数,目前 | NEURON_DISABLE_AUTH | 设置为1,Neuron 关闭Token鉴权认证;设置为0,Neuron 开启Token鉴权认证 | | NNEURON_CONFIG_DIR | Neuron配置文件目录 | | NEURON_PLUGIN_DIR | Neuron插件文件目录 | +| NEURON_SUB_FILTER_ERROR | 设置为 1,subscribe 属性的点位仅检测上次读取正常的值,北向不上报任何错误代码 | ## 配置文件 -Neuron提供 json 格式配置文件配置Neuron相关个性化参数,目前支持 ip,port 和 disable_auth 三个配置项目,配置文件路径为neuron安装目录config/neuron.json。默认配置内容如下: +Neuron 提供 json 格式配置文件配置 Neuron 相关个性化参数,配置文件路径为 neuron 安装目录 config/neuron.json。默认配置内容如下: ```json { - "ip": "0.0.0.0", - "port": 7000, - "disable_auth": 0 + "ip": "0.0.0.0", + "port": 7000, + "disable_auth": 0, + "syslog_host": "", + "syslog_port": 541, + "sub_filter_error": 0 } ```