From ab17865c7d674c83570031af825ed239d91b6315 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Sun, 1 Feb 2026 21:18:38 +0200 Subject: [PATCH] fix(CF-627): Replace infra.agiliton.internal with postgres.agiliton.internal Co-Authored-By: Claude Opus 4.5 --- run.js | 2 +- src/db.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/run.js b/run.js index 5d8890e..09baee5 100644 --- a/run.js +++ b/run.js @@ -1,7 +1,7 @@ #!/usr/bin/env node // Entry point with hardcoded env vars for Claude Code MCP -process.env.DB_HOST = "infra.agiliton.internal"; +process.env.DB_HOST = "postgres.agiliton.internal"; process.env.DB_PORT = "5432"; process.env.DB_NAME = "agiliton"; process.env.DB_USER = "agiliton"; diff --git a/src/db.ts b/src/db.ts index 6a62f33..ff14840 100644 --- a/src/db.ts +++ b/src/db.ts @@ -1,10 +1,10 @@ import pg from 'pg'; const { Pool } = pg; -// Configuration - Direct WireGuard connection to INFRA VM PostgreSQL -// Uses DNS hostname (infra.agiliton.internal) via WireGuard DNS +// Configuration - Direct WireGuard connection to PostgreSQL +// Uses service DNS hostname (postgres.agiliton.internal) via WireGuard DNS const config = { - host: process.env.POSTGRES_HOST || 'infra.agiliton.internal', + host: process.env.POSTGRES_HOST || 'postgres.agiliton.internal', port: parseInt(process.env.POSTGRES_PORT || '5432'), database: 'agiliton', user: 'agiliton',