You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by fe...@apache.org on 2021/09/08 14:08:35 UTC
[incubator-shenyu-website] branch main updated: fix invalid href
link in doc (#258)
This is an automated email from the ASF dual-hosted git repository.
fengzhenbing 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 d01b9cc fix invalid href link in doc (#258)
d01b9cc is described below
commit d01b9cccd989407a71be7cc2f6ebd50e4e1bc343
Author: midnight2104 <33...@qq.com>
AuthorDate: Wed Sep 8 22:08:28 2021 +0800
fix invalid href link in doc (#258)
* fix invalid href link in doc.
* fix md lint
---
docs/design/flow-control.md | 36 ++++++++++++++++++++++
docs/plugin-center/proxy/divide-plugin.md | 4 +--
.../admin-usage/plugin-handle-explanation.md | 2 +-
.../current/design/flow-control.md | 36 ++++++++++++++++++++++
.../current/developer/custom-filter.md | 10 ++++--
.../authority-and-certification/oauth2-plugin.md | 2 +-
.../authority-and-certification/sign-plugin.md | 2 +-
.../plugin-center/http-handle/redirect-plugin.md | 2 +-
.../current/plugin-center/proxy/sofa-plugin.md | 2 +-
.../user-guide/admin-usage/authority-management.md | 2 +-
.../admin-usage/plugin-handle-explanation.md | 2 +-
.../user-guide/admin-usage/selector-and-rule.md | 2 +-
.../current/user-guide/dubbo-proxy.md | 2 +-
.../current/user-guide/use-data-sync.md | 2 +-
.../version-2.4.0/design/flow-control.md | 35 +++++++++++++++++++++
.../authority-and-certification/oauth2-plugin.md | 2 +-
.../authority-and-certification/sign-plugin.md | 2 +-
.../plugin-center/http-handle/divide-plugin.md | 10 +++---
.../plugin-center/http-handle/redirect-plugin.md | 2 +-
.../plugin-center/http-handle/websocket-plugin.md | 6 ++--
.../plugin-center/rpc-proxy/sofa-plugin.md | 2 +-
.../user-guide/admin-usage/authority-management.md | 2 +-
.../admin-usage/plugin-handle-explanation.md | 2 +-
.../user-guide/admin-usage/selector-and-rule.md | 2 +-
.../version-2.4.0/user-guide/dubbo-proxy.md | 2 +-
.../version-2.4.0/user-guide/use-data-sync.md | 2 +-
.../version-2.4.0/design/flow-control.md | 36 ++++++++++++++++++++++
.../plugin-center/http-handle/divide-plugin.md | 4 +--
.../plugin-center/http-handle/websocket-plugin.md | 2 +-
.../admin-usage/plugin-handle-explanation.md | 2 +-
30 files changed, 183 insertions(+), 36 deletions(-)
diff --git a/docs/design/flow-control.md b/docs/design/flow-control.md
new file mode 100644
index 0000000..f8e7b74
--- /dev/null
+++ b/docs/design/flow-control.md
@@ -0,0 +1,36 @@
+---
+title: Flow Control
+keywords: ["flow-control"]
+description: flow-control
+---
+
+ShenYu gateway realizes flow control through plugins, selectors and rules. For related data structure, please refer to the previous [Apache ShenYu Admin Database Design](./database-design) .
+
+
+### Plugin
+
+In Apache ShenYu Admin System, each plugin uses Handle (JSON format) fields to represent different processing, and the plugin processing is used to manage and edit the custom processing fields in the JSON.
+
+The main purpose of this feature is to enable plugins to handle templated configurations.
+
+### Selector And Rule
+
+Selector and rule are the most soul of Apache ShenYu Gateway. Master it and you can manage any traffic.
+
+A plugin has multiple selectors, and one selector corresponds to multiple rules. The selector is the first level filter of traffic, and the rule is the final filter. For a plugin, we want to meet the traffic criteria based on our configuration before the plugin will be executed. Selectors and rules are designed to allow traffic to perform what we want under certain conditions. The rules need to be understood first.
+
+The execution logic of plugin, selector and rule is as follows. When the traffic enters into ShenYu gateway, it will first judge whether there is a corresponding plugin and whether the plugin is turned on. Then determine whether the traffic matches the selector of the plugin. It then determines whether the traffic matches the rules of the selector. If the request traffic meets the matching criteria, the plugin will be executed. Otherwise, the plugin will not be executed. Process the next [...]
+
+<img src="/img/shenyu/dataSync/flow-control-en.png" width="40%" height="30%" />
+
+
+### Traffic filtering
+
+<img src="/img/shenyu/design/flow-condition.png" width="30%" height="30%" />
+
+Traffic filtering is the soul of the selector and the rule, corresponding to the matching conditions in the selector and the rule. According to different traffic filtering rules, we can deal with various complex scenes. Traffic filtering can fetch data from Http requests such as `Header`, `URI`, `Query`, `Cookie`, etc.
+
+You can then use `Match`, `=`, `SpEL`, `Regex`, `Groovy`, etc, to Match the desired data. Multi-group matching Adds matching policies that can use And/Or.
+
+
+please refre to [Selector And Rule Config](../user-guide/admin-usage/selector-and-rule) for details.
diff --git a/docs/plugin-center/proxy/divide-plugin.md b/docs/plugin-center/proxy/divide-plugin.md
index c69d1aa..24c72e5 100644
--- a/docs/plugin-center/proxy/divide-plugin.md
+++ b/docs/plugin-center/proxy/divide-plugin.md
@@ -10,9 +10,9 @@ description: divide plugin
## Plugin Setting
-* Add related dependencies and enable plugin, please refer to: [Quick start http](../../quick-start/quick-start-http)
+* Add related dependencies and enable plugin, please refer to: [Quick start with Http](../../quick-start/quick-start-http)
-* `Http` client access, please refer to:[Http proxy](../../user-guide/admin-usage/http-proxy) .
+* `Http` client access, please refer to:[Http proxy](../../user-guide/http-proxy) .
## Plugin detail
diff --git a/docs/user-guide/admin-usage/plugin-handle-explanation.md b/docs/user-guide/admin-usage/plugin-handle-explanation.md
index 365f211..82eb4af 100644
--- a/docs/user-guide/admin-usage/plugin-handle-explanation.md
+++ b/docs/user-guide/admin-usage/plugin-handle-explanation.md
@@ -38,7 +38,7 @@ For example, add a string type field `path` and a digital type field `timeout` t
- Field: Add the name of the field.
- Describe: Field description.
- DataType: Field data type.
- - If the `DropDown` is selected, the drop-down selection of the input box on the rule addition page is to go to the dictionary table to find all the available options through the field name to select, so you need to config the selection in [Dictionary Management](../dictionary-management).
+ - If the `DropDown` is selected, the drop-down selection of the input box on the rule addition page is to go to the dictionary table to find all the available options through the field name to select, so you need to config the selection in [Dictionary Management](./dictionary-management).
- FieldType: This field belongs to selector, rule or plugin.
- Sort: Sequence number.
- Required: Is this field required.
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/design/flow-control.md b/i18n/zh/docusaurus-plugin-content-docs/current/design/flow-control.md
new file mode 100644
index 0000000..8ce731a
--- /dev/null
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/design/flow-control.md
@@ -0,0 +1,36 @@
+---
+title: 流量控制
+keywords: ["flow-control"]
+description: 介绍ShenYu网关如何对流量进行控制
+---
+
+`Apache ShenYu`网关通过插件、选择器和规则完成流量控制。相关数据结构可以参考之前的 [ShenYu Admin数据结构](./database-design) 。
+
+## 插件
+
+* 在`shenyu-admin`后台,每个插件都用`handle`(`json`格式)字段来表示不同的处理,而插件处理是就是用来管理编辑`json`里面的自定义处理字段。
+* 该功能主要是用来支持插件处理模板化配置的。
+
+
+## 选择器和规则
+
+选择器和规则是 `Apache ShenYu` 网关中最灵魂的东西。掌握好它,你可以对任何流量进行管理。
+
+ 一个插件有多个选择器,一个选择器对应多种规则。选择器相当于是对流量的一级筛选,规则就是最终的筛选。
+对一个插件而言,我们希望根据我们的配置,达到满足条件的流量,插件才会被执行。
+ 选择器和规则就是为了让流量在满足特定的条件下,才去执行我们想要的,这种规则首先要明白。
+
+插件、选择器和规则执行逻辑如下,当流量进入到`Apache ShenYu`网关之后,会先判断是否有对应的插件,该插件是否开启;然后判断流量是否匹配该插件的选择器;然后再判断流量是否匹配该选择器的规则。如果请求流量能满足匹配条件才会执行该插件,否则插件不会被执行,处理下一个。`Apache ShenYu`网关就是这样通过层层筛选完成流量控制。
+
+<img src="/img/shenyu/plugin/plugin-chain-execute.png" width="40%" height="30%" />
+
+## 流量筛选
+
+<img src="/img/shenyu/design/flow-condition.png" width="30%" height="30%" />
+
+流量筛选,是选择器和规则的灵魂,对应为选择器与规则里面的匹配条件(conditions),根据不同的流量筛选规则,我们可以处理各种复杂的场景。流量筛选可以从`Header`, `URI`, `Query`, `Cookie` 等等Http请求获取数据,
+
+然后可以采用 `Match`,`=`,`SpEL`,`Regex`,`Groovy`等匹配方式,匹配出你所预想的数据。多组匹配添加可以使用And/Or的匹配策略。
+
+
+具体的介绍与使用请看: [选择器与规则管理](../user-guide/admin-usage/selector-and-rule) 。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/developer/custom-filter.md b/i18n/zh/docusaurus-plugin-content-docs/current/developer/custom-filter.md
index ace598e..8bb8501 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/developer/custom-filter.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/developer/custom-filter.md
@@ -12,7 +12,7 @@ description: filter扩展
* 新增 `org.apache.shenyu.web.filter.CrossFilter` 实现 `WebFilter`。
- ```java
+```java
public class CrossFilter implements WebFilter {
private static final String ALLOWED_HEADERS = "x-requested-with, authorization, Content-Type, Authorization, credential, X-XSRF-TOKEN,token,username,client";
@@ -48,7 +48,10 @@ description: filter扩展
}
```
-* 将 `CrossFilter` 注册成为 `Spring`的`bean`。
+
+
+
+- 将 `CrossFilter` 注册成为 `Spring`的`bean`。
## 网关过滤 springboot健康检查
@@ -76,9 +79,10 @@ public final class HealthFilter implements WebFilter {
return Objects.requireNonNull(chain).filter(exchange);
}
}
-
```
+
+
## 继承 `org.apache.shenyu.web.filter.AbstractWebFilter`
* 新增一个类继承`AbstractWebFilter`,并实现它的两个方法。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/oauth2-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/oauth2-plugin.md
index 3f18bd5..79454cf 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/oauth2-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/oauth2-plugin.md
@@ -10,7 +10,7 @@ description: OAuth 2插件
## 插件设置
-请参考运维部署的内容,选择一种方式启动`shenyu-admin`。比如,通过 [本地部署](../deployment-local) 启动`Apache ShenYu`后台管理系统。
+请参考运维部署的内容,选择一种方式启动`shenyu-admin`。比如,通过 [本地部署](../../deployment/deployment-local) 启动`Apache ShenYu`后台管理系统。
* 在 `shenyu-admin` 基础配置 --> 插件管理 --> `oauth2` ,设置为开启。如果用户不想使用此功能,请在 `admin` 后台停用此插件。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/sign-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/sign-plugin.md
index 998999b..23022b9 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/sign-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/sign-plugin.md
@@ -37,7 +37,7 @@ description: sign插件
## 新增 AK/SK
-* 在 `shenyu-admin` --> 基础配置/认证管理中,点击新增,新增一条 `AK/SK` 。详情请看:[认证管理](../authority-management)
+* 在 `shenyu-admin` --> 基础配置/认证管理中,点击新增,新增一条 `AK/SK` 。详情请看:[认证管理](../../user-guide/admin-usage/authority-management) 。
## 网关技术实现
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/http-handle/redirect-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/http-handle/redirect-plugin.md
index b9c41ee..90790c7 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/http-handle/redirect-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/http-handle/redirect-plugin.md
@@ -1,5 +1,5 @@
---
-title: 重定向插件
+title: Redirect插件
keywords: ["redirect"]
description: redirect插件
---
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/proxy/sofa-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/proxy/sofa-plugin.md
index 4950966..4c7e26c 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/proxy/sofa-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/proxy/sofa-plugin.md
@@ -14,7 +14,7 @@ description: sofa插件
* 引入相关依赖,开启插件,请参考:[Sofa快速开始](../../quick-start/quick-start-sofa) 。
-* `Sofa`应用客户端接入,请参考:[Sofa服务接入](../../user-guide/sofa-proxy) 。
+* `Sofa`应用客户端接入,请参考:[Sofa服务接入](../../user-guide/sofa-rpc-proxy) 。
* 选择器和规则配置,请参考:[选择器和规则管理](../../user-guide/admin-usage/selector-and-rule)。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/authority-management.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/authority-management.md
index 6a4d006..a952355 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/authority-management.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/authority-management.md
@@ -29,7 +29,7 @@ description: 权限管理详解
点击确认后,生成一条认证信息,该信息包含 `AppKey` 和 `加密秘钥` ,即 `Sign` 插件中的 `AK/SK` 。
-`Sign`插件的详细使用说明请参考: [Sign插件](../sign-plugin) 。
+`Sign`插件的详细使用说明请参考: [Sign插件](../../plugin-center/authority-and-certification/sign-plugin) 。
#### 路径操作
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/plugin-handle-explanation.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/plugin-handle-explanation.md
index f6dac81..99c7808 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/plugin-handle-explanation.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/plugin-handle-explanation.md
@@ -37,7 +37,7 @@ description: 插件配置
* 插件名:需要给哪个插件添加`handle`字段,下拉选择。
* 字段:添加字段的名称。
* 描述:字段描述信息。
-* 数据类型:数字、字符串、下拉框。如果选择了`下拉框`,则规则新增页面里输入框下拉选择是通过字段名称去字典表中查出所有可选项进行下来选择,所以需要提前在 [字典管理](../dictionary-management) 中录入信息。
+* 数据类型:数字、字符串、下拉框。如果选择了`下拉框`,则规则新增页面里输入框下拉选择是通过字段名称去字典表中查出所有可选项进行下来选择,所以需要提前在 [字典管理](./dictionary-management) 中录入信息。
* 字段所属类型:插件、选择器、规则。
* 排序:字段顺序。
* 是否必填:是、否。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/selector-and-rule.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/selector-and-rule.md
index dceb815..a462151 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/selector-and-rule.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/admin-usage/selector-and-rule.md
@@ -5,7 +5,7 @@ description: 选择器和规则管理
---
-本文档将介绍`Apache ShenYu`后台管理系统中选择器和规则的使用,关于选择器和规则的概念及设计请参考 [流量控制](../flow-control)。
+本文档将介绍`Apache ShenYu`后台管理系统中选择器和规则的使用,关于选择器和规则的概念及设计请参考 [流量控制](../../design/flow-control)。
请参考运维部署的内容,选择一种方式启动`shenyu-admin`。比如,通过 [本地部署](../../deployment/deployment-local) 启动`Apache ShenYu`后台管理系统。 启动成功后,可以直接访问 http://localhost:9095 ,默认用户名和密码分别为: `admin` 和 `123456`。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/dubbo-proxy.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/dubbo-proxy.md
index dde23ba..1afe869 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/dubbo-proxy.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/dubbo-proxy.md
@@ -9,7 +9,7 @@ description: Dubbo服务接入
* 此篇文章是介绍 `dubbo` 服务接入到 `Apache ShenYu` 网关,`Apache ShenYu` 网关使用 `dubbo` 插件来接入`Dubbo`服务。
* 当前支持 `alibaba dubbo(< 2.7.x)` 以及 `apache dubbo (>=2.7.x)`。
-* 接入前,请正确启动 `shenyu-admin`,并开启`dubbo`插件,在网关端和`Dubbo`服务端引入相关依赖。可以参考前面的 [Dubbo快速开始](../quick-start/quick-start-http)。
+* 接入前,请正确启动 `shenyu-admin`,并开启`dubbo`插件,在网关端和`Dubbo`服务端引入相关依赖。可以参考前面的 [Dubbo快速开始](../quick-start/quick-start-dubbo)。
应用客户端接入的相关配置请参考:[客户端接入配置](./register-center-access)。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/use-data-sync.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/use-data-sync.md
index d28d7ae..6a933cc 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/use-data-sync.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/use-data-sync.md
@@ -8,7 +8,7 @@ description: 使用不同的数据同步策略
<img src="/img/shenyu/dataSync/data-sync-config-dir-zh.png" width="60%" height="50%" />
-数据同步原理请参考设计文档中的 [数据同步原理](./data-sync) 。
+数据同步原理请参考设计文档中的 [数据同步原理](../design/data-sync) 。
### WebSocket同步配置(默认方式,推荐)
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/design/flow-control.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/design/flow-control.md
new file mode 100644
index 0000000..490b67a
--- /dev/null
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/design/flow-control.md
@@ -0,0 +1,35 @@
+---
+title: 流量控制
+keywords: ["flow-control"]
+description: 介绍ShenYu网关如何对流量进行控制
+---
+
+`Apache ShenYu`网关通过插件、选择器和规则完成流量控制。相关数据结构可以参考之前的 [ShenYu Admin数据结构](./database-design) 。
+
+## 插件
+
+* 在`shenyu-admin`后台,每个插件都用`handle`(`json`格式)字段来表示不同的处理,而插件处理是就是用来管理编辑`json`里面的自定义处理字段。
+* 该功能主要是用来支持插件处理模板化配置的。
+
+
+## 选择器和规则
+
+选择器和规则是 `Apache ShenYu` 网关中最灵魂的东西。掌握好它,你可以对任何流量进行管理。
+
+ 一个插件有多个选择器,一个选择器对应多种规则。选择器相当于是对流量的一级筛选,规则就是最终的筛选。
+对一个插件而言,我们希望根据我们的配置,达到满足条件的流量,插件才会被执行。
+ 选择器和规则就是为了让流量在满足特定的条件下,才去执行我们想要的,这种规则首先要明白。
+
+插件、选择器和规则执行逻辑如下,当流量进入到`Apache ShenYu`网关之后,会先判断是否有对应的插件,该插件是否开启;然后判断流量是否匹配该插件的选择器;然后再判断流量是否匹配该选择器的规则。如果请求流量能满足匹配条件才会执行该插件,否则插件不会被执行,处理下一个。`Apache ShenYu`网关就是这样通过层层筛选完成流量控制。
+
+<img src="/img/shenyu/plugin/plugin-chain-execute.png" width="40%" height="30%" />
+
+## 流量筛选
+
+<img src="/img/shenyu/design/flow-condition.png" width="30%" height="30%" />
+
+流量筛选,是选择器和规则的灵魂,对应为选择器与规则里面的匹配条件(conditions),根据不同的流量筛选规则,我们可以处理各种复杂的场景。流量筛选可以从`Header`, `URI`, `Query`, `Cookie` 等等Http请求获取数据,
+
+然后可以采用 `Match`,`=`,`SpEL`,`Regex`,`Groovy`等匹配方式,匹配出你所预想的数据。多组匹配添加可以使用And/Or的匹配策略。
+
+具体的介绍与使用请看: [选择器与规则管理](../user-guide/admin-usage/selector-and-rule) 。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/authority-and-certification/oauth2-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/authority-and-certification/oauth2-plugin.md
index 3f18bd5..79454cf 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/authority-and-certification/oauth2-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/authority-and-certification/oauth2-plugin.md
@@ -10,7 +10,7 @@ description: OAuth 2插件
## 插件设置
-请参考运维部署的内容,选择一种方式启动`shenyu-admin`。比如,通过 [本地部署](../deployment-local) 启动`Apache ShenYu`后台管理系统。
+请参考运维部署的内容,选择一种方式启动`shenyu-admin`。比如,通过 [本地部署](../../deployment/deployment-local) 启动`Apache ShenYu`后台管理系统。
* 在 `shenyu-admin` 基础配置 --> 插件管理 --> `oauth2` ,设置为开启。如果用户不想使用此功能,请在 `admin` 后台停用此插件。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/authority-and-certification/sign-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/authority-and-certification/sign-plugin.md
index d5d2851..3b38150 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/authority-and-certification/sign-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/authority-and-certification/sign-plugin.md
@@ -37,7 +37,7 @@ description: sign插件
## 新增 AK/SK
-* 在 `shenyu-admin` --> 基础配置/认证管理中,点击新增,新增一条 `AK/SK` 。详情请看:[认证管理](../authority-management)
+* 在 `shenyu-admin` --> 基础配置/认证管理中,点击新增,新增一条 `AK/SK` 。详情请看:[认证管理](../../user-guide/admin-usage/authority-management) 。
## 网关技术实现
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/divide-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/divide-plugin.md
index 8b46b1a..d893c26 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/divide-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/divide-plugin.md
@@ -10,9 +10,9 @@ description: divide插件
## 插件设置
-* 引入相关依赖,开启插件,请参考:[Http快速开始](../quick-start-http) 。
+* 引入相关依赖,开启插件,请参考:[Http快速开始](../../quick-start/quick-start-http) 。
-* `Http`应用客户端接入,请参考:[Http服务接入](../http-proxy) 。
+* `Http`应用客户端接入,请参考:[Http服务接入](../../user-guide/http-proxy) 。
## 插件讲解
@@ -20,7 +20,7 @@ description: divide插件
<img src="/img/shenyu/basicConfig/pluginHandle/selector_example.png" width="80%" height="80%" />
-客户端接入`Apache ShenYu`网关后,会自动注册选择器和规则信息,关于选择器和规则配置,请参考:[选择器和规则管理](../selector-and-rule)。
+客户端接入`Apache ShenYu`网关后,会自动注册选择器和规则信息,关于选择器和规则配置,请参考:[选择器和规则管理](../../user-guide/admin-usage/selector-and-rule)。
#### 选择器处理
@@ -28,7 +28,7 @@ description: divide插件
<img src="/img/shenyu/basicConfig/pluginHandle/selector_add.png" width="80%" height="80%" />
-选择器处理: 对应[选择器和规则管理](../selector-and-rule)的`handle`字段,是网关匹配到流量以后,真实调用的`http`配置,可以配置多个,设置负载均衡权重,具体的负载均衡策略,在规则中指定。更多信息请参考插件管理中的 [插件处理管理](../plugin-handle-explanation) 。
+选择器处理: 对应[选择器和规则管理](../../user-guide/admin-usage/selector-and-rule)的`handle`字段,是网关匹配到流量以后,真实调用的`http`配置,可以配置多个,设置负载均衡权重,具体的负载均衡策略,在规则中指定。更多信息请参考插件管理中的 [插件处理管理](../plugin-handle-explanation) 。
* 处理配置详解:
@@ -70,7 +70,7 @@ shenyu:
<img src="/img/shenyu/basicConfig/pluginHandle/rule_handle.png" width="80%" height="80%" />
-规则处理,即`handle`字段,是网关对流量完成最终匹配后,采取何种处理规则。更多信息请参考插件管理中的 [插件处理管理](../plugin-handle-explanation) 。
+规则处理,即`handle`字段,是网关对流量完成最终匹配后,采取何种处理规则。更多信息请参考插件管理中的 [插件处理管理](../../user-guide/admin-usage/plugin-handle-explanation) 。
* 处理配置详解:
* `loadStrategy`:如果`http`客户端是一个集群,`Apache ShenYu`网关调用时采取哪种负载均衡策略,当前支持 `roundRobin`、`random`和`hash`。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/redirect-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/redirect-plugin.md
index b9c41ee..90790c7 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/redirect-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/redirect-plugin.md
@@ -1,5 +1,5 @@
---
-title: 重定向插件
+title: Redirect插件
keywords: ["redirect"]
description: redirect插件
---
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/websocket-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/websocket-plugin.md
index 6cd4bd6..497bb8e 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/websocket-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/http-handle/websocket-plugin.md
@@ -9,9 +9,9 @@ description: websocket代理
## 环境准备
-请参考运维部署的内容,选择一种方式启动`shenyu-admin`。比如,通过 [本地部署](../deployment-local) 启动`Apache ShenYu`后台管理系统。
+请参考运维部署的内容,选择一种方式启动`shenyu-admin`。比如,通过 [本地部署](../../deployment/deployment-local) 启动`Apache ShenYu`后台管理系统。
-启动成功后,需要在基础配置`->`插件管理中,把`divide` 插件设置为开启。 `Divide`插件的相关使用,请参考:[Divide插件](../divide-plugin) 。
+启动成功后,需要在基础配置`->`插件管理中,把`divide` 插件设置为开启。 `Divide`插件的相关使用,请参考:[Divide插件](./divide-plugin) 。
<img src="/img/shenyu/quick-start/http/http-plugin-enable.png" width="60%" height="50%" />
@@ -68,7 +68,7 @@ ws://localhost:9195/?module=ws&method=/websocket&rpcType=websocket
<img src="/img/shenyu/plugin/websocket/websocket_rule.png" width="80%"/>
-在条件中选择`query`类型,填写匹配字段和取值,这里分别是`method`,`websocket` 。这里的字段和取值,也可以自定义,只要能够匹配上请求就行。
+在条件中选择`query`类型,填写匹配字段和取值,这里分别是`method`,`/websocket` 。这里的字段和取值,也可以自定义,只要能够匹配上请求就行。
通过以上的选择器和规则配置,你的请求就会被匹配上,然后再请求代理的的真实`websocket`地址:`127.0.0.1:8080/websocket`,这样 Apache ShenYu 网关就完成了`websocket`的代理。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/rpc-proxy/sofa-plugin.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/rpc-proxy/sofa-plugin.md
index 4950966..4c7e26c 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/rpc-proxy/sofa-plugin.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/plugin-center/rpc-proxy/sofa-plugin.md
@@ -14,7 +14,7 @@ description: sofa插件
* 引入相关依赖,开启插件,请参考:[Sofa快速开始](../../quick-start/quick-start-sofa) 。
-* `Sofa`应用客户端接入,请参考:[Sofa服务接入](../../user-guide/sofa-proxy) 。
+* `Sofa`应用客户端接入,请参考:[Sofa服务接入](../../user-guide/sofa-rpc-proxy) 。
* 选择器和规则配置,请参考:[选择器和规则管理](../../user-guide/admin-usage/selector-and-rule)。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/authority-management.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/authority-management.md
index ce9d00e..aea9ed9 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/authority-management.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/authority-management.md
@@ -29,7 +29,7 @@ description: 权限管理详解
点击确认后,生成一条认证信息,该信息包含 `AppKey` 和 `加密秘钥` ,即 `Sign` 插件中的 `AK/SK` 。
- `Sign`插件的详细使用说明请参考: [Sign插件](../sign-plugin) 。
+ `Sign`插件的详细使用说明请参考: [Sign插件](../../plugin-center/authority-and-certification/sign-plugin) 。
#### 路径操作
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/plugin-handle-explanation.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/plugin-handle-explanation.md
index f6dac81..99c7808 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/plugin-handle-explanation.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/plugin-handle-explanation.md
@@ -37,7 +37,7 @@ description: 插件配置
* 插件名:需要给哪个插件添加`handle`字段,下拉选择。
* 字段:添加字段的名称。
* 描述:字段描述信息。
-* 数据类型:数字、字符串、下拉框。如果选择了`下拉框`,则规则新增页面里输入框下拉选择是通过字段名称去字典表中查出所有可选项进行下来选择,所以需要提前在 [字典管理](../dictionary-management) 中录入信息。
+* 数据类型:数字、字符串、下拉框。如果选择了`下拉框`,则规则新增页面里输入框下拉选择是通过字段名称去字典表中查出所有可选项进行下来选择,所以需要提前在 [字典管理](./dictionary-management) 中录入信息。
* 字段所属类型:插件、选择器、规则。
* 排序:字段顺序。
* 是否必填:是、否。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/selector-and-rule.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/selector-and-rule.md
index dceb815..a462151 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/selector-and-rule.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/admin-usage/selector-and-rule.md
@@ -5,7 +5,7 @@ description: 选择器和规则管理
---
-本文档将介绍`Apache ShenYu`后台管理系统中选择器和规则的使用,关于选择器和规则的概念及设计请参考 [流量控制](../flow-control)。
+本文档将介绍`Apache ShenYu`后台管理系统中选择器和规则的使用,关于选择器和规则的概念及设计请参考 [流量控制](../../design/flow-control)。
请参考运维部署的内容,选择一种方式启动`shenyu-admin`。比如,通过 [本地部署](../../deployment/deployment-local) 启动`Apache ShenYu`后台管理系统。 启动成功后,可以直接访问 http://localhost:9095 ,默认用户名和密码分别为: `admin` 和 `123456`。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/dubbo-proxy.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/dubbo-proxy.md
index dde23ba..1afe869 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/dubbo-proxy.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/dubbo-proxy.md
@@ -9,7 +9,7 @@ description: Dubbo服务接入
* 此篇文章是介绍 `dubbo` 服务接入到 `Apache ShenYu` 网关,`Apache ShenYu` 网关使用 `dubbo` 插件来接入`Dubbo`服务。
* 当前支持 `alibaba dubbo(< 2.7.x)` 以及 `apache dubbo (>=2.7.x)`。
-* 接入前,请正确启动 `shenyu-admin`,并开启`dubbo`插件,在网关端和`Dubbo`服务端引入相关依赖。可以参考前面的 [Dubbo快速开始](../quick-start/quick-start-http)。
+* 接入前,请正确启动 `shenyu-admin`,并开启`dubbo`插件,在网关端和`Dubbo`服务端引入相关依赖。可以参考前面的 [Dubbo快速开始](../quick-start/quick-start-dubbo)。
应用客户端接入的相关配置请参考:[客户端接入配置](./register-center-access)。
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/use-data-sync.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/use-data-sync.md
index d28d7ae..311292b 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/use-data-sync.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.0/user-guide/use-data-sync.md
@@ -8,7 +8,7 @@ description: 使用不同的数据同步策略
<img src="/img/shenyu/dataSync/data-sync-config-dir-zh.png" width="60%" height="50%" />
-数据同步原理请参考设计文档中的 [数据同步原理](./data-sync) 。
+数据同步原理请参考设计文档中的 [数据同步原理](../design/data-sync) 。
### WebSocket同步配置(默认方式,推荐)
diff --git a/versioned_docs/version-2.4.0/design/flow-control.md b/versioned_docs/version-2.4.0/design/flow-control.md
new file mode 100644
index 0000000..f8e7b74
--- /dev/null
+++ b/versioned_docs/version-2.4.0/design/flow-control.md
@@ -0,0 +1,36 @@
+---
+title: Flow Control
+keywords: ["flow-control"]
+description: flow-control
+---
+
+ShenYu gateway realizes flow control through plugins, selectors and rules. For related data structure, please refer to the previous [Apache ShenYu Admin Database Design](./database-design) .
+
+
+### Plugin
+
+In Apache ShenYu Admin System, each plugin uses Handle (JSON format) fields to represent different processing, and the plugin processing is used to manage and edit the custom processing fields in the JSON.
+
+The main purpose of this feature is to enable plugins to handle templated configurations.
+
+### Selector And Rule
+
+Selector and rule are the most soul of Apache ShenYu Gateway. Master it and you can manage any traffic.
+
+A plugin has multiple selectors, and one selector corresponds to multiple rules. The selector is the first level filter of traffic, and the rule is the final filter. For a plugin, we want to meet the traffic criteria based on our configuration before the plugin will be executed. Selectors and rules are designed to allow traffic to perform what we want under certain conditions. The rules need to be understood first.
+
+The execution logic of plugin, selector and rule is as follows. When the traffic enters into ShenYu gateway, it will first judge whether there is a corresponding plugin and whether the plugin is turned on. Then determine whether the traffic matches the selector of the plugin. It then determines whether the traffic matches the rules of the selector. If the request traffic meets the matching criteria, the plugin will be executed. Otherwise, the plugin will not be executed. Process the next [...]
+
+<img src="/img/shenyu/dataSync/flow-control-en.png" width="40%" height="30%" />
+
+
+### Traffic filtering
+
+<img src="/img/shenyu/design/flow-condition.png" width="30%" height="30%" />
+
+Traffic filtering is the soul of the selector and the rule, corresponding to the matching conditions in the selector and the rule. According to different traffic filtering rules, we can deal with various complex scenes. Traffic filtering can fetch data from Http requests such as `Header`, `URI`, `Query`, `Cookie`, etc.
+
+You can then use `Match`, `=`, `SpEL`, `Regex`, `Groovy`, etc, to Match the desired data. Multi-group matching Adds matching policies that can use And/Or.
+
+
+please refre to [Selector And Rule Config](../user-guide/admin-usage/selector-and-rule) for details.
diff --git a/versioned_docs/version-2.4.0/plugin-center/http-handle/divide-plugin.md b/versioned_docs/version-2.4.0/plugin-center/http-handle/divide-plugin.md
index 8b59dcf..f9d6a1a 100644
--- a/versioned_docs/version-2.4.0/plugin-center/http-handle/divide-plugin.md
+++ b/versioned_docs/version-2.4.0/plugin-center/http-handle/divide-plugin.md
@@ -10,9 +10,9 @@ description: divide plugin
## Plugin Setting
-* Add related dependencies and enable plugin, please refer to: [Quick start http](../../quick-start/quick-start-http)
+* Add related dependencies and enable plugin, please refer to: [Quick start with Http](../../quick-start/quick-start-http)
-* `Http` client access, please refer to:[Http proxy](../../user-guide/admin-usage/http-proxy) .
+* `Http` client access, please refer to:[Http proxy](../../user-guide/http-proxy) .
## Plugin detail
diff --git a/versioned_docs/version-2.4.0/plugin-center/http-handle/websocket-plugin.md b/versioned_docs/version-2.4.0/plugin-center/http-handle/websocket-plugin.md
index ba4d912..798b4b0 100644
--- a/versioned_docs/version-2.4.0/plugin-center/http-handle/websocket-plugin.md
+++ b/versioned_docs/version-2.4.0/plugin-center/http-handle/websocket-plugin.md
@@ -71,7 +71,7 @@ Add a new rule under this selector:
<img src="/img/shenyu/plugin/websocket/websocket_rule_en.png" width="80%"/>
-Select the type `query` in the condition, and fill in the matching field and value, which are `method` and `websocket` respectively. You can also customize the fields and the values, as long as they match the request.
+Select the type `query` in the condition, and fill in the matching field and value, which are `method` and `/websocket` respectively. You can also customize the fields and the values, as long as they match the request.
diff --git a/versioned_docs/version-2.4.0/user-guide/admin-usage/plugin-handle-explanation.md b/versioned_docs/version-2.4.0/user-guide/admin-usage/plugin-handle-explanation.md
index 365f211..82eb4af 100644
--- a/versioned_docs/version-2.4.0/user-guide/admin-usage/plugin-handle-explanation.md
+++ b/versioned_docs/version-2.4.0/user-guide/admin-usage/plugin-handle-explanation.md
@@ -38,7 +38,7 @@ For example, add a string type field `path` and a digital type field `timeout` t
- Field: Add the name of the field.
- Describe: Field description.
- DataType: Field data type.
- - If the `DropDown` is selected, the drop-down selection of the input box on the rule addition page is to go to the dictionary table to find all the available options through the field name to select, so you need to config the selection in [Dictionary Management](../dictionary-management).
+ - If the `DropDown` is selected, the drop-down selection of the input box on the rule addition page is to go to the dictionary table to find all the available options through the field name to select, so you need to config the selection in [Dictionary Management](./dictionary-management).
- FieldType: This field belongs to selector, rule or plugin.
- Sort: Sequence number.
- Required: Is this field required.