mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-06-22 06:04:20 +00:00
feat: add pgbouncer
This commit is contained in:
parent
984e495d03
commit
ca24d57fd0
8 changed files with 438 additions and 15 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue