完善架构,修改很多地方
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
http:
|
||||
routers:
|
||||
|
||||
# 共享模块的 路由 拦截 配置
|
||||
app-shared-router:
|
||||
rule: Host(`nacos.ddd.com`) && PathPrefix(`/app-shared`)
|
||||
service: app-shared-service
|
||||
@@ -9,8 +11,9 @@ http:
|
||||
tracing: true
|
||||
traceVerbosity: detailed
|
||||
entryPoints:
|
||||
- web
|
||||
- web
|
||||
|
||||
# 商品模块的 路由 拦截 配置
|
||||
app-product-router:
|
||||
rule: Host(`nacos.ddd.com`) && PathPrefix(`/app-product`)
|
||||
service: app-product-service
|
||||
@@ -20,9 +23,9 @@ http:
|
||||
tracing: true
|
||||
traceVerbosity: detailed
|
||||
entryPoints:
|
||||
- web
|
||||
- web
|
||||
|
||||
# 使用域名访问前端main-app
|
||||
# 使用域名访问前端 main-app 主模块
|
||||
main-ddd-router:
|
||||
rule: Host(`main.ddd.com`)
|
||||
service: main-ddd-service
|
||||
@@ -34,7 +37,7 @@ http:
|
||||
entryPoints:
|
||||
- web
|
||||
|
||||
# Nacos 集群 管理后台的统一访问域名
|
||||
# Nacos 集群 管理后台的统一 访问域名
|
||||
nacosui-ddd-router:
|
||||
rule: Host(`nacosui.ddd.com`)
|
||||
service: nacosui-ddd-service
|
||||
@@ -44,7 +47,7 @@ http:
|
||||
tracing: true
|
||||
traceVerbosity: detailed
|
||||
entryPoints:
|
||||
- web
|
||||
- web
|
||||
|
||||
# trafik 网关 代理 内网 nacos 集群 的地址
|
||||
nacos-ddd-router:
|
||||
@@ -56,7 +59,7 @@ http:
|
||||
tracing: true
|
||||
traceVerbosity: detailed
|
||||
entryPoints:
|
||||
- web
|
||||
- web
|
||||
|
||||
# trafik 网关的管理后台的域名
|
||||
trafikui-ddd-router:
|
||||
@@ -71,7 +74,7 @@ http:
|
||||
- web
|
||||
|
||||
|
||||
services:
|
||||
services:
|
||||
app-shared-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
@@ -80,12 +83,14 @@ http:
|
||||
app-product-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://192.168.31.101:1301
|
||||
- url: http://192.168.139.19:1301
|
||||
- url: http://192.168.139.120:1301
|
||||
- url: http://192.168.139.242:1301
|
||||
|
||||
main-ddd-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://192.168.31.101:1300
|
||||
- url: http://192.168.31.101:1300
|
||||
|
||||
nacosui-ddd-service:
|
||||
loadBalancer:
|
||||
|
||||
Reference in New Issue
Block a user