Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions en_US/admin/conf-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
12 changes: 8 additions & 4 deletions zh_CN/admin/conf-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```