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:
Дмитрий Соловьев
2026-06-17 09:06:04 +03:00
parent bd35280691
commit 20d9eb9579
2 changed files with 19 additions and 6 deletions
+9
View File
@@ -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}