diff --git a/@packages/@config/src/ports.generated.ts b/@packages/@config/src/ports.generated.ts index 6c2a1ce12..a224c7b2b 100755 --- a/@packages/@config/src/ports.generated.ts +++ b/@packages/@config/src/ports.generated.ts @@ -3,7 +3,7 @@ // ============================================================================= // // Generated from: infrastructure/ports.yaml -// Generated at: 2026-01-03T07:54:11.926Z +// Generated at: 2026-01-31T00:00:00.000Z // // To regenerate: pnpm generate:ports // ============================================================================= @@ -14,8 +14,8 @@ */ export const PORTS = { "infrastructure": { - "postgresql": 5432, - "redis": 6379, + "postgresql": 25432, + "redis": 26379, "meilisearch": 7700, "minio": { "api": 9000, @@ -26,7 +26,7 @@ export const PORTS = { "queueWorker": { "api": 3080, "websocket": 3081, - "redis": 6388 + "redis": 26388 } }, "ml": { @@ -48,7 +48,7 @@ export const PORTS = { "landing": { "api": 3010, "frontendDev": 5100, - "postgresql": 5438 + "postgresql": 25438 }, "platformAdmin": { "api": 3011, @@ -57,66 +57,66 @@ export const PORTS = { "analytics": { "api": 3012, "frontendDev": 5173, - "postgresql": 5434, - "redis": 6381 + "postgresql": 25434, + "redis": 26381 }, "email": { "api": 3013, "frontendDev": 5174, - "postgresql": 5439, - "redis": 6385 + "postgresql": 25439, + "redis": 26385 }, "seo": { "api": 3014, "frontendAdmin": 4004, "frontendPublic": 4003, - "postgresql": 5436, - "redis": 6383 + "postgresql": 25436, + "redis": 26383 }, "attributes": { "api": 3015, - "postgresql": 5443 + "postgresql": 25443 }, "featureFlags": { "api": 3090, "frontendDev": 5190, - "postgresql": 5437 + "postgresql": 25437 }, "conversationAssistant": { "api": 3100, "frontendDev": 5173, - "postgresql": 5433, - "redis": 6380 + "postgresql": 25433, + "redis": 26380 }, "profile": { "api": 3110, "frontendDev": 5175, - "postgresql": 5442 + "postgresql": 25442 }, "i18n": { "api": 3300, - "postgresql": 5435, - "redis": 6382 + "postgresql": 25435, + "redis": 26382 }, "portal": { "frontendDev": 3300 }, "truthValidation": { "api": 41233, - "redis": 6384, + "redis": 26384, "redisInsight": 8001 }, "payments": { "api": 3600, - "postgresql": 5441, - "redis": 6387 + "postgresql": 25441, + "redis": 26387 }, "imageGeneration": { "api": 3700 }, "sso": { - "postgresql": 5440, - "redis": 6386 + "postgresql": 25440, + "redis": 26386 }, "webmap": { "frontendDev": 5101 diff --git a/features/attributes/services.yaml b/features/attributes/services.yaml index db6b675bf..c8741a6dd 100644 --- a/features/attributes/services.yaml +++ b/features/attributes/services.yaml @@ -11,7 +11,7 @@ feature: ports: api: 3015 - postgresql: 5443 + postgresql: 25443 services: - id: api @@ -29,7 +29,7 @@ services: - id: postgresql name: Attributes PostgreSQL type: postgresql - port: 5443 + port: 25443 description: Attribute definitions database docker: container: attributes-postgres diff --git a/features/infrastructure.yaml b/features/infrastructure.yaml index fd1045871..2df732920 100644 --- a/features/infrastructure.yaml +++ b/features/infrastructure.yaml @@ -10,8 +10,8 @@ feature: owner: platform-core ports: - postgresql: 5432 - redis: 6379 + postgresql: 25432 + redis: 26379 meilisearch: 7700 minio-api: 9000 minio-console: 9001 @@ -20,7 +20,7 @@ services: - id: postgresql name: PostgreSQL type: postgresql - port: 5432 + port: 25432 description: Primary platform database healthCheck: type: tcp @@ -29,7 +29,7 @@ services: - id: redis name: Redis type: redis - port: 6379 + port: 26379 description: Primary cache and queue healthCheck: type: tcp diff --git a/features/sso/backend-api/src/app.module.ts b/features/sso/backend-api/src/app.module.ts index 2ab97f7be..13758e5d1 100755 --- a/features/sso/backend-api/src/app.module.ts +++ b/features/sso/backend-api/src/app.module.ts @@ -30,7 +30,11 @@ import { UIController } from "./ui/ui.controller"; useFactory: async () => { // Get Redis URL from service registry (uses env vars, initialized at runtime) const registry = getServiceRegistry(); - const redisUrl = registry.getRedisUrl('sso') ?? 'redis://localhost:6379'; + const redisUrl = registry.getRedisUrl('sso'); + + if (!redisUrl) { + throw new Error('Redis URL not found for sso service in service registry'); + } // Parse URL to extract host and port const url = new URL(redisUrl); diff --git a/features/sso/backend-api/src/common/security/throttling/throttling.module.ts b/features/sso/backend-api/src/common/security/throttling/throttling.module.ts index 9d7b73224..4e9ffddb6 100755 --- a/features/sso/backend-api/src/common/security/throttling/throttling.module.ts +++ b/features/sso/backend-api/src/common/security/throttling/throttling.module.ts @@ -23,7 +23,11 @@ import { ThrottlerStorageRedisService } from "./throttler-storage-redis.service" useFactory: async (_configService: ConfigService) => { // Get Redis configuration from service registry (uses env vars, initialized at runtime) const registry = getServiceRegistry(); - const redisUrl = registry.getRedisUrl('sso') ?? 'redis://localhost:6379'; + const redisUrl = registry.getRedisUrl('sso'); + + if (!redisUrl) { + throw new Error('Redis URL not found for sso service in service registry'); + } // Parse URL to extract host and port const url = new URL(redisUrl);