mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
[frontend-gray] Increase gray types according to the ratio-weight gray (#1291)
This commit is contained in:
@@ -48,6 +48,8 @@ static_resources:
|
||||
value: |
|
||||
{
|
||||
"grayKey": "userId",
|
||||
"backendGrayTag": "x-mse-tag",
|
||||
"userStickyMaxAge": 172800,
|
||||
"rules": [
|
||||
{
|
||||
"name": "inner-user",
|
||||
@@ -71,7 +73,7 @@ static_resources:
|
||||
],
|
||||
"rewrite": {
|
||||
"host": "frontend-gray-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com",
|
||||
"notFoundUri": "/mfe/app1/dev/404.html",
|
||||
"notFoundUri": "/mfe/app1/{version}/333.html",
|
||||
"indexRouting": {
|
||||
"/app1": "/mfe/app1/{version}/index.html",
|
||||
"/": "/mfe/app1/{version}/index.html"
|
||||
@@ -88,10 +90,25 @@ static_resources:
|
||||
{
|
||||
"name": "beta-user",
|
||||
"version": "0.0.1",
|
||||
"backendVersion": "beta",
|
||||
"enabled": true
|
||||
"enabled": true,
|
||||
"weight": 50
|
||||
}
|
||||
]
|
||||
],
|
||||
"injection": {
|
||||
"head": [
|
||||
"<script>console.log('Header')</script>"
|
||||
],
|
||||
"body": {
|
||||
"first": [
|
||||
"<script>console.log('hello world before')</script>",
|
||||
"<script>console.log('hello world before1')</script>"
|
||||
],
|
||||
"last": [
|
||||
"<script>console.log('hello world after')</script>",
|
||||
"<script>console.log('hello world after2')</script>"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
- name: envoy.filters.http.router
|
||||
typed_config:
|
||||
|
||||
Reference in New Issue
Block a user