Some checks are pending
Automatisch Backend Tests / test (push) Waiting to run
Automatisch CI / linter (push) Waiting to run
Automatisch CI / start-backend-server (push) Waiting to run
Automatisch CI / start-backend-worker (push) Waiting to run
Automatisch CI / build-web (push) Waiting to run
Automatisch UI Tests / test (push) Waiting to run
15 lines
351 B
JavaScript
15 lines
351 B
JavaScript
const { Pool } = require('pg');
|
|
|
|
const pool = new Pool({
|
|
max: 20,
|
|
idleTimeoutMillis: 30000,
|
|
connectionTimeoutMillis: 2000,
|
|
host: process.env.POSTGRES_HOST,
|
|
user: process.env.POSTGRES_USERNAME,
|
|
port: process.env.POSTGRES_PORT,
|
|
password: process.env.POSTGRES_PASSWORD,
|
|
database: process.env.POSTGRES_DATABASE
|
|
});
|
|
|
|
exports.pgPool = pool;
|