This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new afe9e39 local deployment property (#478)
afe9e39 is described below
commit afe9e3904b9a408e16f74fd025eeba44588b583b
Author: Zhang Yonglun <[email protected]>
AuthorDate: Mon Mar 7 16:13:11 2022 +0800
local deployment property (#478)
* local deployment property
* for comments
---
docs/deployment/deployment-quick.md | 11 ++++++++++-
docs/developer/local-model.md | 4 +++-
.../current/deployment/deployment-quick.md | 11 ++++++++++-
.../current/developer/local-model.md | 4 +++-
4 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/docs/deployment/deployment-quick.md
b/docs/deployment/deployment-quick.md
index 895730d..4bfd50a 100644
--- a/docs/deployment/deployment-quick.md
+++ b/docs/deployment/deployment-quick.md
@@ -42,7 +42,15 @@ example:
### by postman
-> `POST`
method,address`http://localhost:9195/shenyu/plugin/selectorAndRules`,body use
`raw json` content:
+> 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.
+>
+> `POST` method,address`http://localhost:9195/shenyu/plugin/selectorAndRules`,
body use `raw json` content:
+
+```
+Headers
+
+localKey: 123456
+```
```json
{
@@ -69,6 +77,7 @@ example:
```bash
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/docs/developer/local-model.md b/docs/developer/local-model.md
index c1fec13..7a25ba0 100644
--- a/docs/developer/local-model.md
+++ b/docs/developer/local-model.md
@@ -14,7 +14,9 @@ description: Local Model
success
```
-* Common preFix : `localhost:9095/shenyu`
+* Common preFix: `localhost:9095/shenyu`
+
+* Common Header: `localKey: 123456`
## Plugin
diff --git
a/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-quick.md
b/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-quick.md
index 8f1df11..1076bce 100644
---
a/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-quick.md
+++
b/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-quick.md
@@ -42,7 +42,15 @@ description: 单机快速部署
### 使用postman
-> 请求方式POST,地址`http://localhost:9195/shenyu/plugin/selectorAndRules`,body 选择raw
json,内容如下:
+> Headers 中添加 `localKey: 123456`。如果需要自定义 localKey,可以使用 sha512 工具根据明文生成 key,并更新
`shenyu.local.sha512Key` 属性。
+>
+> 请求方式POST,地址`http://localhost:9195/shenyu/plugin/selectorAndRules`,body 选择raw
json,内容如下:
+
+```
+Headers
+
+localKey: 123456
+```
```json
{
@@ -69,6 +77,7 @@ description: 单机快速部署
```bash
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/i18n/zh/docusaurus-plugin-content-docs/current/developer/local-model.md
b/i18n/zh/docusaurus-plugin-content-docs/current/developer/local-model.md
index d247af8..832a664 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/developer/local-model.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/developer/local-model.md
@@ -14,7 +14,9 @@ description: 本地模式
success
```
-* 统一请求前缀 : `localhost:9095/shenyu`
+* 统一请求前缀:`localhost:9095/shenyu`
+
+* 统一请求头:`localKey: 123456`
## 插件数据