master
Rob Hedgpeth 2020-03-31 10:46:26 -05:00
rodzic 0bfa252339
commit a3596024f4
4 zmienionych plików z 8 dodań i 12 usunięć

Wyświetl plik

@ -3,7 +3,7 @@ require('dotenv').config();
// SSL (e.g. SkySQL) connections // SSL (e.g. SkySQL) connections
// * Remember to change the location of "skysql_chain.pem" to wherever you placed it! // * 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) // * To use just uncomment the two lines below and the 'ssl' property (and value) within the connection pool configuration
//const fs = require("fs"); //const fs = require("fs");
//const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; //const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
@ -15,7 +15,6 @@ const pool = mariadb.createPool({
port: process.env.DB_PORT, port: process.env.DB_PORT,
multipleStatements: true, multipleStatements: true,
connectionLimit: 5 connectionLimit: 5
// For SSL (e.g. SkySQL) connections
/* /*
,ssl: { ,ssl: {
ca: serverCert ca: serverCert

Wyświetl plik

@ -3,7 +3,7 @@ require('dotenv').config();
// SSL (e.g. SkySQL) connections // SSL (e.g. SkySQL) connections
// * Remember to change the location of "skysql_chain.pem" to wherever you placed it! // * 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) // * To use just uncomment the two lines below and the 'ssl' property (and value) within the connection pool configuration
//const fs = require("fs"); //const fs = require("fs");
//const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; //const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
@ -16,11 +16,10 @@ const pool = mariadb.createPool({
database: process.env.DB_NAME, database: process.env.DB_NAME,
multipleStatements: true, multipleStatements: true,
connectionLimit: 5 connectionLimit: 5
// For SSL (e.g. SkySQL) connections /*
/* ,ssl: {
,ssl: { ca: serverCert
ca: serverCert }*/
}*/
}); });
module.exports={ module.exports={

Wyświetl plik

@ -3,7 +3,7 @@ require('dotenv').config();
// SSL (e.g. SkySQL) connections // SSL (e.g. SkySQL) connections
// * Remember to change the location of "skysql_chain.pem" to wherever you placed it! // * 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) // * To use just uncomment the two lines below and the 'ssl' property (and value) within the connection pool configuration
//const fs = require("fs"); //const fs = require("fs");
//const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; //const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
@ -17,7 +17,6 @@ var pools = [
database: process.env.DB_NAME_1, database: process.env.DB_NAME_1,
multipleStatements: true, multipleStatements: true,
connectionLimit: 5 connectionLimit: 5
// For SSL (e.g. SkySQL) connections
/* /*
,ssl: { ,ssl: {
ca: serverCert ca: serverCert

Wyświetl plik

@ -3,7 +3,7 @@ require('dotenv').config();
// SSL (e.g. SkySQL) connections // SSL (e.g. SkySQL) connections
// * Remember to change the location of "skysql_chain.pem" to wherever you placed it! // * 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) // * To use just uncomment the two lines below and the 'ssl' property (and value) within the connection pool configuration
//const fs = require("fs"); //const fs = require("fs");
//const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; //const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
@ -15,7 +15,6 @@ const pool = mariadb.createPool({
database: 'Places', database: 'Places',
multipleStatements: true, multipleStatements: true,
connectionLimit: 5 connectionLimit: 5
// For SSL (e.g. SkySQL) connections
/* /*
,ssl: { ,ssl: {
ca: serverCert ca: serverCert