db.js updates
rodzic
0bfa252339
commit
a3596024f4
|
@ -3,7 +3,7 @@ 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)
|
||||
// * To use just uncomment the two lines below and the 'ssl' property (and value) within the connection pool configuration
|
||||
|
||||
//const fs = require("fs");
|
||||
//const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
|
||||
|
@ -15,7 +15,6 @@ const pool = mariadb.createPool({
|
|||
port: process.env.DB_PORT,
|
||||
multipleStatements: true,
|
||||
connectionLimit: 5
|
||||
// For SSL (e.g. SkySQL) connections
|
||||
/*
|
||||
,ssl: {
|
||||
ca: serverCert
|
||||
|
|
|
@ -3,7 +3,7 @@ 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)
|
||||
// * To use just uncomment the two lines below and the 'ssl' property (and value) within the connection pool configuration
|
||||
|
||||
//const fs = require("fs");
|
||||
//const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
|
||||
|
@ -16,7 +16,6 @@ const pool = mariadb.createPool({
|
|||
database: process.env.DB_NAME,
|
||||
multipleStatements: true,
|
||||
connectionLimit: 5
|
||||
// For SSL (e.g. SkySQL) connections
|
||||
/*
|
||||
,ssl: {
|
||||
ca: serverCert
|
||||
|
|
|
@ -3,7 +3,7 @@ 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)
|
||||
// * To use just uncomment the two lines below and the 'ssl' property (and value) within the connection pool configuration
|
||||
|
||||
//const fs = require("fs");
|
||||
//const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
|
||||
|
@ -17,7 +17,6 @@ var pools = [
|
|||
database: process.env.DB_NAME_1,
|
||||
multipleStatements: true,
|
||||
connectionLimit: 5
|
||||
// For SSL (e.g. SkySQL) connections
|
||||
/*
|
||||
,ssl: {
|
||||
ca: serverCert
|
||||
|
|
|
@ -3,7 +3,7 @@ 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)
|
||||
// * To use just uncomment the two lines below and the 'ssl' property (and value) within the connection pool configuration
|
||||
|
||||
//const fs = require("fs");
|
||||
//const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
|
||||
|
@ -15,7 +15,6 @@ const pool = mariadb.createPool({
|
|||
database: 'Places',
|
||||
multipleStatements: true,
|
||||
connectionLimit: 5
|
||||
// For SSL (e.g. SkySQL) connections
|
||||
/*
|
||||
,ssl: {
|
||||
ca: serverCert
|
||||
|
|
Ładowanie…
Reference in New Issue