Made some modifications to NeahFront9 project mac 3
This commit is contained in:
parent
115c38b94a
commit
1ab9638fe9
@ -5,10 +5,11 @@ import { Pool } from 'pg';
|
|||||||
const DB_HOST = process.env.DB_HOST || '172.16.0.104';
|
const DB_HOST = process.env.DB_HOST || '172.16.0.104';
|
||||||
const DB_PORT = process.env.DB_PORT || '5432';
|
const DB_PORT = process.env.DB_PORT || '5432';
|
||||||
const DB_USER = process.env.DB_USER || 'alma';
|
const DB_USER = process.env.DB_USER || 'alma';
|
||||||
|
const DB_PASSWORD = process.env.DB_PASSWORD || 'alma'; // Default password
|
||||||
const DB_NAME = process.env.DB_NAME || 'rivacube';
|
const DB_NAME = process.env.DB_NAME || 'rivacube';
|
||||||
|
|
||||||
// Construct connection string from components
|
// Construct connection string from components
|
||||||
const connectionString = `postgresql://${DB_USER}@${DB_HOST}:${DB_PORT}/${DB_NAME}`;
|
const connectionString = `postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}`;
|
||||||
|
|
||||||
// Log the connection string (with password masked for security)
|
// Log the connection string (with password masked for security)
|
||||||
const maskedConnectionString = connectionString.replace(/\/\/[^:]+:[^@]+@/, '//***:***@');
|
const maskedConnectionString = connectionString.replace(/\/\/[^:]+:[^@]+@/, '//***:***@');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user