Skip to content

Commit

Permalink
网关项目设置负载均衡策略为RoundRobin
Browse files Browse the repository at this point in the history
  • Loading branch information
zhontai committed Jan 7, 2025
1 parent a642dab commit 5e02c97
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
11 changes: 6 additions & 5 deletions src/gateways/ZhonTai.Gateway.Yarp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"admin": {
"ClusterId": "admin",
"Match": {
"Path": "/api/admin/{*any}",
"Methods": [ "POST", "GET", "DELETE", "PUT" ],
"Path": "/api/admin/{**catch-all}",
//"Methods": [ "POST", "GET", "DELETE", "PUT" ],
"Hosts": []
}
},
"admin-doc": {
"ClusterId": "admin",
"Match": {
"Path": "/doc/admin/{*any}",
"Methods": [ "POST", "GET", "DELETE", "PUT" ],
"Path": "/doc/admin/{**catch-all}",
//"Methods": [ "POST", "GET", "DELETE", "PUT" ],
"Hosts": []
}
}
Expand All @@ -32,7 +32,8 @@
"destination1": {
"Address": "http://localhost:18010"
}
}
},
"LoadBalancingPolicy": "RoundRobin"
}
}
},
Expand Down
11 changes: 6 additions & 5 deletions templates/gateway/content/MyGateway.Host/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"admin": {
"ClusterId": "admin",
"Match": {
"Path": "/api/admin/{*any}",
"Methods": [ "POST", "GET", "DELETE", "PUT" ],
"Path": "/api/admin/{**catch-all}",
//"Methods": [ "POST", "GET", "DELETE", "PUT" ],
"Hosts": []
}
},
"admin-doc": {
"ClusterId": "admin",
"Match": {
"Path": "/doc/admin/{*any}",
"Methods": [ "POST", "GET", "DELETE", "PUT" ],
"Path": "/doc/admin/{**catch-all}",
//"Methods": [ "POST", "GET", "DELETE", "PUT" ],
"Hosts": []
}
}
Expand All @@ -32,7 +32,8 @@
"destination1": {
"Address": "http://localhost:18010"
}
}
},
"LoadBalancingPolicy": "RoundRobin"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions ui/zhontai.ui.admin.vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@element-plus/icons-vue": "^2.3.1",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
"ace-builds": "^1.37.1",
"ace-builds": "^1.37.2",
"axios": "^1.7.9",
"countup.js": "^2.8.0",
"cropperjs": "^1.6.2",
Expand Down Expand Up @@ -54,8 +54,8 @@
"@types/node": "^22.10.5",
"@types/nprogress": "^0.2.3",
"@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"@typescript-eslint/eslint-plugin": "^8.19.1",
"@typescript-eslint/parser": "^8.19.1",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/compiler-sfc": "^3.5.13",
"dotenv": "16.4.7",
Expand Down

0 comments on commit 5e02c97

Please sign in to comment.