diff --git a/bookings/src/db.js b/bookings/src/db.js index c7be345..e31ece7 100644 --- a/bookings/src/db.js +++ b/bookings/src/db.js @@ -1,8 +1,12 @@ -const fs = require("fs"); var mariadb = require('mariadb'); require('dotenv').config(); -const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")] +// SSL (e.g. SkySQL) connections +// * Remember to change the location of "skysql_chain.pem" to wherever you placed it! +// * To use just uncomment the two lines below and the 'ssl' property (and value) + +const fs = require("fs"); +const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; const pool = mariadb.createPool({ host: process.env.DB_HOST, diff --git a/flights/src/db.js b/flights/src/db.js index 43b6da1..aa5f2b3 100644 --- a/flights/src/db.js +++ b/flights/src/db.js @@ -1,7 +1,11 @@ -const fs = require("fs"); var mariadb = require('mariadb'); require('dotenv').config(); +// SSL (e.g. SkySQL) connections +// * Remember to change the location of "skysql_chain.pem" to wherever you placed it! +// * To use just uncomment the two lines below and the 'ssl' property (and value) + +const fs = require("fs"); const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; const pool = mariadb.createPool({ diff --git a/orders/src/db.js b/orders/src/db.js index 29eab59..47ec139 100644 --- a/orders/src/db.js +++ b/orders/src/db.js @@ -1,9 +1,12 @@ -const fs = require("fs"); var mariadb = require('mariadb'); require('dotenv').config(); -// For SSL connections -const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; +// SSL (e.g. SkySQL) connections +// * Remember to change the location of "skysql_chain.pem" to wherever you placed it! +// * To use just uncomment the two lines below and the 'ssl' property (and value) + +const fs = require("fs"); +const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];r var pools = [ mariadb.createPool({ diff --git a/places/src/db.js b/places/src/db.js index 4de4d06..1f1fe82 100644 --- a/places/src/db.js +++ b/places/src/db.js @@ -1,8 +1,12 @@ -const fs = require("fs"); var mariadb = require('mariadb'); require('dotenv').config(); -const serverCert = [fs.readFileSync("skysql_chain_t.pem", "utf8")]; +// SSL (e.g. SkySQL) connections +// * Remember to change the location of "skysql_chain.pem" to wherever you placed it! +// * To use just uncomment the two lines below and the 'ssl' property (and value) + +const fs = require("fs"); +const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; const pool = mariadb.createPool({ host: process.env.DB_HOST,