mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
feat: 🎸 frontend-gray plugin support cdn type deploy (#1178)
Co-authored-by: Kent Dong <ch3cho@qq.com>
This commit is contained in:
@@ -47,8 +47,7 @@ static_resources:
|
||||
"@type": "type.googleapis.com/google.protobuf.StringValue"
|
||||
value: |
|
||||
{
|
||||
"grayKey": "UserInfo",
|
||||
"graySubKey": "userCode",
|
||||
"grayKey": "userId",
|
||||
"rules": [
|
||||
{
|
||||
"name": "inner-user",
|
||||
@@ -70,13 +69,26 @@ static_resources:
|
||||
]
|
||||
}
|
||||
],
|
||||
"rewrite": {
|
||||
"host": "frontend-gray-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com",
|
||||
"notFoundUri": "/mfe/app1/dev/404.html",
|
||||
"indexRouting": {
|
||||
"/app1": "/mfe/app1/{version}/index.html",
|
||||
"/": "/mfe/app1/{version}/index.html"
|
||||
},
|
||||
"fileRouting": {
|
||||
"/": "/mfe/app1/{version}",
|
||||
"/app1": "/mfe/app1/{version}"
|
||||
}
|
||||
},
|
||||
"baseDeployment": {
|
||||
"version": "base"
|
||||
"version": "dev"
|
||||
},
|
||||
"grayDeployments": [
|
||||
{
|
||||
"name": "beta-user",
|
||||
"version": "gray",
|
||||
"version": "0.0.1",
|
||||
"backendVersion": "beta",
|
||||
"enabled": true
|
||||
}
|
||||
]
|
||||
@@ -98,5 +110,5 @@ static_resources:
|
||||
- endpoint:
|
||||
address:
|
||||
socket_address:
|
||||
address: httpbin.org
|
||||
address: frontend-gray-cn-shanghai.oss-cn-shanghai.aliyuncs.com
|
||||
port_value: 80
|
||||
Reference in New Issue
Block a user