This is an automated email from the ASF dual-hosted git repository.

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d42f69  update readme (#2996)
7d42f69 is described below

commit 7d42f6967fc9ad5a98e83f6dbef07013be7865b6
Author: Zhang Yonglun <[email protected]>
AuthorDate: Mon Mar 7 16:13:31 2022 +0800

    update readme (#2996)
---
 README.md    | 5 ++++-
 README_CN.md | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index db516c8..086eded 100644
--- a/README.md
+++ b/README.md
@@ -107,11 +107,14 @@ He is known as one of the three greatest kings of ancient 
China, along with Yao
 }
 ```
 
-* Set routing rules(Standalone)
+* Set routing rules (Standalone)
+
+Add `localKey: 123456` to Headers. If you need to customize the localKey, you 
can use the sha512 tool to generate the key based on plaintext and update the 
`shenyu.local.sha512Key` property.
 
 ```
 curl --location --request POST 
'http://localhost:9195/shenyu/plugin/selectorAndRules' \
 --header 'Content-Type: application/json' \
+--header 'localKey: 123456' \
 --data-raw '{
     "pluginName": "divide",
     "selectorHandler": "[{\"upstreamUrl\":\"127.0.0.1:8080\"}]",
diff --git a/README_CN.md b/README_CN.md
index fa6a9b1..9b2792d 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -108,9 +108,12 @@ ShenYu (神禹)是我们古代君王夏禹的尊称(后世也尊称大禹)
 
 * 单机模式设置路由规则
 
+Headers 中添加 `localKey: 123456`。如果需要自定义 localKey,可以使用 sha512 工具根据明文生成 key,并更新 
`shenyu.local.sha512Key` 属性。
+
 ```
 curl --location --request POST 
'http://localhost:9195/shenyu/plugin/selectorAndRules' \
 --header 'Content-Type: application/json' \
+--header 'localKey: 123456' \
 --data-raw '{
     "pluginName": "divide",
     "selectorHandler": "[{\"upstreamUrl\":\"127.0.0.1:8080\"}]",

Reply via email to