Skip to content

Commit

Permalink
doc: add env describe
Browse files Browse the repository at this point in the history
  • Loading branch information
heqingpan committed May 19, 2024
1 parent 5dd2cb4 commit 4f5116c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ rnacos
|RNACOS_ENABLE_NO_AUTH_CONSOLE|是否开启无鉴权控制台|false|false|0.5.2|
|RNACOS_CONSOLE_LOGIN_TIMEOUT|控制台登陆有效时长(单位为秒)|一天,86400秒|86400|0.5.0|
|RNACOS_GMT_OFFSET_HOURS|日志时间的时区,单位小时;默认为本机时区,运行在docker时需要指定|local|8(东8区),-5(西5区)|0.5.7|
|RNACOS_ENABLE_OPEN_API_AUTH|是否对openapi开启鉴权|false|true|0.5.8|
|RNACOS_CLUSTER_TOKEN|集群间的通信请求校验token,空表示不开启校验,设置后只有相同token的节点间才可通讯|空字符串|1234567890abcdefg|0.5.8|


启动配置方式可以参考: [运行参数说明](https://r-nacos.github.io/docs/notes/env_config/)
Expand Down
2 changes: 2 additions & 0 deletions book/src/deplay_env.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ rnacos 运行时支持的环境变量,如果不设置则按默认配置运行
|RNACOS_ENABLE_NO_AUTH_CONSOLE|是否开启无鉴权控制台|false|false|0.5.2|
|RNACOS_CONSOLE_LOGIN_TIMEOUT|控制台登陆有效时长(单位为秒)|一天,86400秒|86400|0.5.0|
|RNACOS_GMT_OFFSET_HOURS|日志时间的时区,单位小时;默认为本机时区,运行在docker时需要指定|local|8(东8区),-5(西5区)|0.5.7|
|RNACOS_ENABLE_OPEN_API_AUTH|是否对openapi开启鉴权|false|true|0.5.8|
|RNACOS_CLUSTER_TOKEN|集群间的通信请求校验token,空表示不开启校验,设置后只有相同token的节点间才可通讯|空字符串|1234567890abcdefg|0.5.8|


注:从v0.3.0开始,默认参数启动的节点会被当做只有一个节点,当前节点是主节点的集群部署。支持其它新增的从节点加入。
Expand Down
7 changes: 7 additions & 0 deletions doc/conf/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,10 @@ RNACOS_ENABLE_NO_AUTH_CONSOLE=false

# 日志时间的时区,单位小时;默认为本机时区,运行在docker时需要指定; 示例: 8(东8区),-5(西5区)
#RNACOS_GMT_OFFSET_HOURS=8


#是否对openapi开启鉴权,默认为false
#RNACOS_ENABLE_OPEN_API_AUTH=false

#集群间的通信请求校验token,空表示不开启校验,设置后只有相同token的节点间才可通讯;默认为字符串
#RNACOS_CLUSTER_TOKEN=bbd8b0b391254e00ae1a7c8ac6ed5f82

0 comments on commit 4f5116c

Please sign in to comment.