My etherpad instance uses PlanetScale as a MySQL backend and, to connect, it needs SSL information.
I edited DB.js like so and it works:
const tls = require('tls');
var realSettings = Object.assign(
{ ssl: { ca: tls.rootCertificates } },
settings.dbSettings
);
// set database settings
const db = new ueberDB.Database(
settings.dbType,
realSettings,
null,
log4js.getLogger("ueberDB")
);
I'm wondering if this is useful enough to propose as a PR? Maybe by gating it with a setting like useTSLRootCerts or something similar?
My etherpad instance uses PlanetScale as a MySQL backend and, to connect, it needs SSL information.
I edited
DB.jslike so and it works:I'm wondering if this is useful enough to propose as a PR? Maybe by gating it with a setting like
useTSLRootCertsor something similar?