feat: add pgbouncer

This commit is contained in:
ahmadk953 2025-06-16 21:43:06 -04:00
parent 984e495d03
commit ca24d57fd0
No known key found for this signature in database
GPG key ID: 31D488058614185C
8 changed files with 438 additions and 15 deletions

View file

@ -103,9 +103,9 @@ export async function initializeDatabaseConnection(): Promise<boolean> {
ssl: (() => {
try {
return {
ca: fs.readFileSync(path.resolve('./certs/psql-ca.crt')),
key: fs.readFileSync(path.resolve('./certs/psql-client.key')),
cert: fs.readFileSync(path.resolve('./certs/psql-server.crt')),
ca: fs.readFileSync(path.resolve('./certs/pgbouncer-ca.crt')),
key: fs.readFileSync(path.resolve('./certs/pgbouncer-client.key')),
cert: fs.readFileSync(path.resolve('./certs/pgbouncer-server.crt')),
};
} catch (error) {
console.warn(