This commit is contained in:
Benjamin Toby
2024-01-18 16:55:07 +01:00
parent 05ba95342c
commit 90cc67992b
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -18,6 +18,7 @@
////////////////////////////////////////
////////////////////////////////////////
const fs = require("fs");
const mysql = require("mysql");
const path = require("path");
@@ -34,7 +35,7 @@ const connection = mysql.createConnection({
: undefined,
timeout: 5000,
ssl: {
ca: `${SSL_PATH}/ca-cert.pem`,
ca: fs.readFileSync(`${SSL_PATH}/ca-cert.pem`),
},
// ssl: {
// ca: (() => {
+1 -1
View File
@@ -16,7 +16,7 @@ const connection = mysql.createConnection({
: undefined,
timeout: 5000,
ssl: {
ca: `${SSL_PATH}/ca-cert.pem`,
ca: fs.readFileSync(`${SSL_PATH}/ca-cert.pem`),
},
});