http: routers: # app-shared-router: rule: Host(`nacos.ddd.com`) && PathPrefix(`/app-shared`) service: app-shared-service observability: metrics: true accessLogs: true tracing: true traceVerbosity: detailed entryPoints: - web app-product-router: rule: Host(`nacos.ddd.com`) && PathPrefix(`/app-product`) service: app-product-service observability: metrics: true accessLogs: true tracing: true traceVerbosity: detailed entryPoints: - web # 使用域名访问前端main-app main-ddd-router: rule: Host(`main.ddd.com`) service: main-ddd-service observability: metrics: true accessLogs: true tracing: true traceVerbosity: detailed entryPoints: - web # Nacos 集群 管理后台的统一访问域名 nacosui-ddd-router: rule: Host(`nacosui.ddd.com`) service: nacosui-ddd-service observability: metrics: true accessLogs: true tracing: true traceVerbosity: detailed entryPoints: - web # trafik 网关 代理 内网 nacos 集群 的地址 nacos-ddd-router: rule: Host(`nacos.ddd.com`) service: nacos-ddd-service observability: metrics: true accessLogs: true tracing: true traceVerbosity: detailed entryPoints: - web # trafik 网关的管理后台的域名 trafikui-ddd-router: rule: Host(`trafikui.ddd.com`) service: trafikui-ddd-service observability: metrics: true accessLogs: true tracing: true traceVerbosity: detailed entryPoints: - web services: app-shared-service: loadBalancer: servers: - url: http://192.168.139.172:1333 - url: http://192.168.139.184:1333 - url: http://192.168.139.186:1333 app-product-service: loadBalancer: servers: - 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 nacosui-ddd-service: loadBalancer: servers: - url: http://192.168.139.84:8080 - url: http://192.168.139.15:8080 - url: http://192.168.139.178:8080 nacos-ddd-service: loadBalancer: servers: - url: http://192.168.139.84:8848 - url: http://192.168.139.15:8848 - url: http://192.168.139.178:8848 trafikui-ddd-service: loadBalancer: servers: - url: http://192.168.139.80:8080