Files
Edu/infra/apollo-router/supergraph.yaml
SpecialX 1a5fa78fa6 feat(config-service): split config-service from iam for plugin/layout config
- new NestJS service on port 3011/gRPC 50059 (ADR-026)
- owns 6 config_ tables (plugin/role-mapping/role-layout/layout-tpl/user-override/outbox)
- GraphQL Federation 2 subgraph with DataLoader + RouterAuthGuard
- gRPC ConfigService + admin REST CRUD + user REST API
- three-layer merge: registry.defaultProps + roleMapping.widget_props + userOverride.props
- Redis cache with 5min TTL
- registered in apollo-router supergraph + docker-compose + port-allocation

Implements M3 of v2.1 migration plan.
2026-07-15 02:13:03 +08:00

48 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Apollo Federation 2 Supergraph 组合配置
#
# 列出所有子图及其路由 URLrover supergraph compose 使用此文件生成 supergraph SDL。
# 子图 /graphql 端点必须返回 _service { sdl } 以支持内省组合。
#
# 生成命令:
# rover supergraph compose --config supergraph.yaml --output supergraph-schema.graphql
#
# v2.1 M2: apollo-router 替代 3 个 BFF 的手动聚合职责
federation_version: =2.9.0
subgraphs:
iam:
routing_url: http://iam:3002/graphql
schema:
subgraph_url: http://iam:3002/graphql
core-edu:
routing_url: http://core-edu:3004/graphql
schema:
subgraph_url: http://core-edu:3004/graphql
content:
routing_url: http://content:3005/graphql
schema:
subgraph_url: http://content:3005/graphql
msg:
routing_url: http://msg:3007/graphql
schema:
subgraph_url: http://msg:3007/graphql
ai:
routing_url: http://ai:3008/graphql
schema:
subgraph_url: http://ai:3008/graphql
data-ana:
routing_url: http://data-ana:3006/graphql
schema:
subgraph_url: http://data-ana:3006/graphql
config:
routing_url: http://config-service:3011/graphql
schema:
subgraph_url: http://config-service:3011/graphql