Replace hardcoded IPs with DNS hostnames

- Updated db.ts to use infra.agiliton.internal with env var fallback
- Updated run.js to use infra.agiliton.internal for DB_HOST
- Rebuilt dist files with new configuration

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-01-17 09:11:37 +02:00
parent 90bb7e94f0
commit 8db391f680
2 changed files with 3 additions and 3 deletions

View File

@@ -2,9 +2,9 @@ import pg from 'pg';
const { Pool } = pg;
// Configuration - Direct WireGuard connection to INFRA VM PostgreSQL
// HARDCODED to prevent any env var override issues
// Uses DNS hostname (infra.agiliton.internal) via WireGuard DNS
const config = {
host: '10.0.1.1', // INFRA VM - agiliton database
host: process.env.POSTGRES_HOST || 'infra.agiliton.internal',
port: 5432,
database: 'agiliton',
user: 'agiliton',