chore(config): #51 slots-service ходит к чужим API строго через gateway
- pcp-gateway-service: добавлен маршрут satellite-catalog
(/api/pcp-satellite-catalog/** -> StripPrefix=2).
- slots-service: settings.request-service/earth-grid-service/satellite-catalog-service
переведены на ${pcp.services.gateway}/api/pcp-<x> (код строит $base/<path>,
gateway снимает префикс). Прямые адреса сервисов больше не используются.
This commit is contained in:
@@ -63,6 +63,15 @@ spring:
|
||||
- Path=/api/pcp-slots/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
# Каталог КА: фронт сюда не ходит, но slots-service обращается к нему строго
|
||||
# через gateway (settings.satellite-catalog-service -> /api/pcp-satellite-catalog).
|
||||
# StripPrefix=2: /api/pcp-satellite-catalog/api/satellites -> бэкенд /api/satellites.
|
||||
- id: satellite-catalog
|
||||
uri: ${pcp.services.satellite-catalog}
|
||||
predicates:
|
||||
- Path=/api/pcp-satellite-catalog/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
# --- Станции: путь СОХРАНЯЕМ (в vite было без rewrite) — без StripPrefix.
|
||||
- id: stations
|
||||
uri: ${pcp.services.stations}
|
||||
|
||||
Reference in New Issue
Block a user