mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-18 17:55:24 -04:00
Added awsrds config option
This commit is contained in:
parent
05ee363a66
commit
c5c27820c9
1
db.js
1
db.js
@ -1976,6 +1976,7 @@ module.exports.CreateDB = function (parent, func) {
|
|||||||
// SSL options different on mariadb/mysql
|
// SSL options different on mariadb/mysql
|
||||||
var sslOptions = '';
|
var sslOptions = '';
|
||||||
if (obj.databaseType == 4) {
|
if (obj.databaseType == 4) {
|
||||||
|
if (props.awsrds) { cmd += ' --single-transaction'; }
|
||||||
if (props.ssl) {
|
if (props.ssl) {
|
||||||
sslOptions = ' --ssl';
|
sslOptions = ' --ssl';
|
||||||
if (props.ssl.cacertpath) sslOptions = ' --ssl-ca=' + props.ssl.cacertpath;
|
if (props.ssl.cacertpath) sslOptions = ' --ssl-ca=' + props.ssl.cacertpath;
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
"password": { "type": "string", "description": "MariaDB password" },
|
"password": { "type": "string", "description": "MariaDB password" },
|
||||||
"connectionLimit": { "type": "number", "description": "MariaDB connection limit" },
|
"connectionLimit": { "type": "number", "description": "MariaDB connection limit" },
|
||||||
"database": { "type": "string", "default": "meshcentral", "description": "Name of MariaDB database used" },
|
"database": { "type": "string", "default": "meshcentral", "description": "Name of MariaDB database used" },
|
||||||
|
"awsrds": { "type": "boolean", "default": false, "description": "Set true to resolve LOCK TABLE permissions on AWS RDS." },
|
||||||
"ssl": {
|
"ssl": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "SSL Options. Set to true (boolean) for default options.",
|
"description": "SSL Options. Set to true (boolean) for default options.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user