From: xangelo Date: Wed, 4 Dec 2024 20:00:13 +0000 (-0500) Subject: chore(build): fix db ssl for DO X-Git-Tag: v0.4.4~22 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=c9bc3a2a938da5a56096e2b3941c38515ca42894;p=risinglegends.git chore(build): fix db ssl for DO --- diff --git a/knexfile.ts b/knexfile.ts index 987738c..ea4b0b7 100644 --- a/knexfile.ts +++ b/knexfile.ts @@ -11,7 +11,8 @@ const config: { [key: string]: Knex.Config } = { connection: { connectionString: connectionUrl, ssl: { - rejectUnauthorized: false + rejectUnauthorized: false, + ca: process.env.CA_CERT } }, pool: { @@ -28,7 +29,8 @@ const config: { [key: string]: Knex.Config } = { connection: { connectionString: connectionUrl, ssl: { - rejectUnauthorized: false + rejectUnauthorized: false, + ca: process.env.CA_CERT } }, pool: { diff --git a/src/server/lib/db.ts b/src/server/lib/db.ts index 7b9fe4a..6a19281 100644 --- a/src/server/lib/db.ts +++ b/src/server/lib/db.ts @@ -10,7 +10,8 @@ export const db = knex({ connection: { connectionString: connectionUrl, ssl: { - rejectUnauthorized: false + rejectUnauthorized: false, + ca: process.env.CA_CERT } } });