db.js updates
rodzic
0bfa252339
commit
a3596024f4
|
@ -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
|
||||||
|
|
|
@ -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={
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Ładowanie…
Reference in New Issue