mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-07-05 03:46:00 +00:00
chore: switched to redis and cleanup
This commit is contained in:
parent
c3762ffc49
commit
a7b9134047
9 changed files with 84 additions and 110 deletions
|
@ -103,9 +103,7 @@ export async function initializeDatabaseConnection(): Promise<boolean> {
|
|||
ssl: (() => {
|
||||
try {
|
||||
return {
|
||||
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')),
|
||||
ca: fs.readFileSync(path.resolve('./certs/rootCA.pem')),
|
||||
};
|
||||
} catch (error) {
|
||||
console.warn(
|
||||
|
|
|
@ -96,9 +96,9 @@ async function initializeRedisConnection() {
|
|||
tls: (() => {
|
||||
try {
|
||||
return {
|
||||
ca: fs.readFileSync(path.resolve('./certs/cache-ca.crt')),
|
||||
key: fs.readFileSync(path.resolve('./certs/cache-client.key')),
|
||||
cert: fs.readFileSync(path.resolve('./certs/cache-server.crt')),
|
||||
ca: fs.readFileSync(path.resolve('./certs/rootCA.pem')),
|
||||
key: fs.readFileSync(path.resolve('./certs/cache-key.pem')),
|
||||
cert: fs.readFileSync(path.resolve('./certs/cache-cert.pem')),
|
||||
};
|
||||
} catch (error) {
|
||||
console.warn(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue