封装自动生成 traefik 代理配置的 nodejs 插件代码
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
http:
|
||||
routers:
|
||||
main-app-router:
|
||||
rule: PathPrefix(`/main-app`)
|
||||
service: main-app-service
|
||||
app-product-router:
|
||||
rule: PathPrefix(`/app-product`)
|
||||
service: app-product-service
|
||||
entryPoints:
|
||||
- web
|
||||
middlewares:
|
||||
@@ -10,9 +10,9 @@ http:
|
||||
- ipWhiteList
|
||||
- rateLimit
|
||||
- retries
|
||||
app-product-router:
|
||||
rule: PathPrefix(`/app-product`)
|
||||
service: app-product-service
|
||||
main-app-router:
|
||||
rule: PathPrefix(`/main-app`)
|
||||
service: main-app-service
|
||||
entryPoints:
|
||||
- web
|
||||
middlewares:
|
||||
@@ -31,14 +31,14 @@ http:
|
||||
- rateLimit
|
||||
- retries
|
||||
services:
|
||||
main-app-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://192.168.31.101:1300
|
||||
app-product-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://192.168.31.101:1301
|
||||
main-app-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://192.168.31.101:1300
|
||||
app-shared-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
|
||||
Reference in New Issue
Block a user