From 1b579ab0b0646fa755edb0cac24aab3c30f17881 Mon Sep 17 00:00:00 2001 From: Till JS Date: Wed, 6 May 2026 20:38:46 +0200 Subject: [PATCH] =?UTF-8?q?chore(mana-events):=20move=20from=20port=203065?= =?UTF-8?q?=20to=203115=20=E2=80=94=20collision=20with=20platform=20mana-m?= =?UTF-8?q?edia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Platform-Repo (Code/mana/) reserviert 3065 für mana-media; um Doppel- Belegung zu vermeiden wandert mana-events (Public-RSVP / Event-Sharing) auf 3115. Neuer Port-Block 311x ist unbenutzt und gehört strukturell neben mana-mail (3042) bzw. die anderen 30xx Service-Ports. Berührt jeden harden-coded 3065-Default — Server-Config, Webapp-Config, SSR-Routes (rsvp/[token], status), Playwright-Webserver-Setup, e2e-Spec. PUBLIC_MANA_EVENTS_URL in .env.development zieht beide Variablen mit. PORT_SCHEMA.md trägt jetzt den Wechsel mit Datum + Begründung — zukünftiges Ich soll nicht raten warum der Port aus der 30xx-Reihe ausschert. Co-Authored-By: Claude Opus 4.7 (1M context) --- .env.development | 4 ++-- apps/mana/apps/web/e2e/events-public-rsvp.spec.ts | 2 +- apps/mana/apps/web/playwright.config.ts | 4 ++-- apps/mana/apps/web/src/lib/api/config.ts | 4 ++-- apps/mana/apps/web/src/routes/rsvp/[token]/+page.server.ts | 2 +- apps/mana/apps/web/src/routes/status/+page.server.ts | 2 +- docs/PORT_SCHEMA.md | 4 +++- services/mana-events/CLAUDE.md | 4 ++-- services/mana-events/src/config.ts | 2 +- 9 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.env.development b/.env.development index 78e7db9b1..4f9c72b9c 100644 --- a/.env.development +++ b/.env.development @@ -28,8 +28,8 @@ MANA_CREDITS_URL=http://localhost:3061 # Mana Media Service (CAS, thumbnails, Photos gallery) MANA_MEDIA_URL=http://localhost:3015 # Mana Events Service (public RSVP & event sharing) -MANA_EVENTS_URL=http://localhost:3065 -PUBLIC_MANA_EVENTS_URL=http://localhost:3065 +MANA_EVENTS_URL=http://localhost:3115 +PUBLIC_MANA_EVENTS_URL=http://localhost:3115 # Service key for service-to-service communication MANA_SERVICE_KEY=dev-service-key-for-bot-sso-2024 diff --git a/apps/mana/apps/web/e2e/events-public-rsvp.spec.ts b/apps/mana/apps/web/e2e/events-public-rsvp.spec.ts index b57fdf223..96444afec 100644 --- a/apps/mana/apps/web/e2e/events-public-rsvp.spec.ts +++ b/apps/mana/apps/web/e2e/events-public-rsvp.spec.ts @@ -14,7 +14,7 @@ import postgres from 'postgres'; const DATABASE_URL = process.env.DATABASE_URL || 'postgresql://mana:devpassword@localhost:5432/mana_platform'; -const EVENTS_URL = process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3065'; +const EVENTS_URL = process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3115'; const sql = postgres(DATABASE_URL, { max: 2 }); diff --git a/apps/mana/apps/web/playwright.config.ts b/apps/mana/apps/web/playwright.config.ts index f02beb3c9..c9f6bc428 100644 --- a/apps/mana/apps/web/playwright.config.ts +++ b/apps/mana/apps/web/playwright.config.ts @@ -59,11 +59,11 @@ export default defineConfig({ }, { command: 'cd ../../../../services/mana-events && bun run src/index.ts', - url: 'http://localhost:3065/health', + url: 'http://localhost:3115/health', reuseExistingServer: true, timeout: 60_000, env: { - PORT: '3065', + PORT: '3115', DATABASE_URL: process.env.DATABASE_URL || 'postgresql://mana:devpassword@localhost:5432/mana_platform', diff --git a/apps/mana/apps/web/src/lib/api/config.ts b/apps/mana/apps/web/src/lib/api/config.ts index ef579bd6e..89cebf2d0 100644 --- a/apps/mana/apps/web/src/lib/api/config.ts +++ b/apps/mana/apps/web/src/lib/api/config.ts @@ -42,9 +42,9 @@ export function getManaEventsUrl(): string { if (browser && typeof window !== 'undefined') { const injected = (window as unknown as { __PUBLIC_MANA_EVENTS_URL__?: string }) .__PUBLIC_MANA_EVENTS_URL__; - return injected || 'http://localhost:3065'; + return injected || 'http://localhost:3115'; } - return process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3065'; + return process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3115'; } /** diff --git a/apps/mana/apps/web/src/routes/rsvp/[token]/+page.server.ts b/apps/mana/apps/web/src/routes/rsvp/[token]/+page.server.ts index 8e36ac7f2..28b1bbacf 100644 --- a/apps/mana/apps/web/src/routes/rsvp/[token]/+page.server.ts +++ b/apps/mana/apps/web/src/routes/rsvp/[token]/+page.server.ts @@ -10,7 +10,7 @@ import type { PageServerLoad } from './$types'; const EVENTS_URL = process.env.PUBLIC_MANA_EVENTS_URL_CLIENT || process.env.PUBLIC_MANA_EVENTS_URL || - 'http://localhost:3065'; + 'http://localhost:3115'; type Lang = 'de' | 'en' | 'it' | 'fr' | 'es'; diff --git a/apps/mana/apps/web/src/routes/status/+page.server.ts b/apps/mana/apps/web/src/routes/status/+page.server.ts index 61be41cca..961c0ff52 100644 --- a/apps/mana/apps/web/src/routes/status/+page.server.ts +++ b/apps/mana/apps/web/src/routes/status/+page.server.ts @@ -19,7 +19,7 @@ const SERVICES = [ { name: 'Media', url: process.env.PUBLIC_MANA_MEDIA_URL || 'http://localhost:3011' }, { name: 'LLM', url: process.env.PUBLIC_MANA_LLM_URL || 'http://localhost:3025' }, { name: 'Geocoding', url: process.env.PUBLIC_MANA_GEOCODING_URL || 'http://localhost:3018' }, - { name: 'Events', url: process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3065' }, + { name: 'Events', url: process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3115' }, ]; async function checkService(service: { name: string; url: string }): Promise { diff --git a/docs/PORT_SCHEMA.md b/docs/PORT_SCHEMA.md index f73f9bf52..880c44834 100644 --- a/docs/PORT_SCHEMA.md +++ b/docs/PORT_SCHEMA.md @@ -26,7 +26,9 @@ > - mana-mail `3042` > - mana-sync `3050` > - mana-credits `3061`, mana-user `3062`, mana-subscriptions `3063`, -> mana-analytics `3064`, mana-events `3065`, mana-research `3068` +> mana-analytics `3064`, mana-events `3115` (moved from 3065 on +> 2026-05-06 because the platform mana-media reserves 3065 — see +> `Code/mana/docs/PORTS.md`), mana-research `3068` > (new 2026-04-17, Bun/Hono, public: `research.mana.how`), > mana-mcp `3069` (new 2026-04-22, Bun/Hono, MCP gateway over > Streamable HTTP — see `services/mana-mcp/CLAUDE.md`), diff --git a/services/mana-events/CLAUDE.md b/services/mana-events/CLAUDE.md index fc4d9a5bd..0295925e6 100644 --- a/services/mana-events/CLAUDE.md +++ b/services/mana-events/CLAUDE.md @@ -11,7 +11,7 @@ Public RSVP and event-sharing service. Hosts publish event snapshots from the Ma | **Database** | PostgreSQL + Drizzle ORM | | **Auth** | EdDSA JWT validation via JWKS from mana-auth (`jose`) — host-side only; RSVP endpoints are intentionally unauthenticated | -## Port: 3065 +## Port: 3115 ## Quick Start @@ -81,7 +81,7 @@ The Hono app lives in `app.ts` (exporting a `createApp(db, config)` factory) so ## Configuration ```env -PORT=3065 +PORT=3115 DATABASE_URL=postgresql://... MANA_AUTH_URL=http://localhost:3001 CORS_ORIGINS=http://localhost:5173,https://mana.how diff --git a/services/mana-events/src/config.ts b/services/mana-events/src/config.ts index efd0f7bc5..8cce0165d 100644 --- a/services/mana-events/src/config.ts +++ b/services/mana-events/src/config.ts @@ -30,7 +30,7 @@ export function loadConfig(): Config { }; return { - port: parseInt(process.env.PORT || '3065', 10), + port: parseInt(process.env.PORT || '3115', 10), databaseUrl: requiredEnv( 'DATABASE_URL', 'postgresql://mana:devpassword@localhost:5432/mana_platform'