Added PostgreSQL into config.json schema.

This commit is contained in:
Ylian Saint-Hilaire 2022-05-02 12:01:32 -07:00
parent 1c2dc30d8e
commit eff853a380
1 changed files with 54 additions and 11 deletions

View File

@ -39,24 +39,67 @@
"type": "object", "type": "object",
"description": "Add this section to connect MeshCentral to a MySQL database instance.", "description": "Add this section to connect MeshCentral to a MySQL database instance.",
"properties": { "properties": {
"host": { "type": "string", "description": "MySQL hostname" }, "host": {
"port": { "type": "number", "description": "MySQL port number" }, "type": "string",
"user": { "type": "string", "description": "MySQL username" }, "description": "MySQL hostname"
"password": { "type": "string", "description": "MySQL password" }, },
"database": { "type": "string", "default": "meshcentral", "description": "Name of MySQL database used" }, "port": {
"awsrds": { "type": "boolean", "default": false, "description": "Set true to resolve LOCK TABLE permissions on AWS RDS." }, "type": "number",
"ssl": { "description": "MySQL port number"
},
"user": {
"type": "string",
"description": "MySQL username"
},
"password": {
"type": "string",
"description": "MySQL password"
},
"database": {
"type": "string",
"default": "meshcentral",
"description": "Name of MySQL database used"
},
"awsrds": {
"type": "boolean",
"default": false,
"description": "Set true to resolve LOCK TABLE permissions on AWS RDS."
},
"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.",
"properties": { "properties": {
"caCertPath": { "type": "string", "description": "Absolute path to the CA certificate. Required for self-signed certificates" }, "caCertPath": {
"clientCertPath": { "type": "string", "description": "Absolute path to the client certificate. Required for two-way SSL Authentication" }, "type": "string",
"clientKeyPath": { "type": "string", "description": "Absolute path to the client key. Required for two-way SSL Authentication" }, "description": "Absolute path to the CA certificate. Required for self-signed certificates"
"dontCheckServerIdentity": { "type": "boolean", "description": "Set true to not check the server hostname during verification" } },
"clientCertPath": {
"type": "string",
"description": "Absolute path to the client certificate. Required for two-way SSL Authentication"
},
"clientKeyPath": {
"type": "string",
"description": "Absolute path to the client key. Required for two-way SSL Authentication"
},
"dontCheckServerIdentity": {
"type": "boolean",
"description": "Set true to not check the server hostname during verification"
}
} }
} }
} }
}, },
"postgres": {
"type": "object",
"description": "Add this section to connect MeshCentral to a PostgreSQL database instance.",
"properties": {
"host": { "type": "string", "description": "PostgreSQL hostname" },
"user": { "type": "string", "description": "PostgreSQL username" },
"port": { "type": "number", "description": "PostgreSQL port number" },
"password": { "type": "string", "description": "PostgreSQL password" },
"database": { "type": "string", "default": "meshcentral", "description": "Name of PostgreSQL database used" }
}
},
"WANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral WAN features are enabled and agents will connect to the server using a well known DNS name." }, "WANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral WAN features are enabled and agents will connect to the server using a well known DNS name." },
"LANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral LAN features are enabled and agents will find the server using multicast LAN packets." }, "LANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral LAN features are enabled and agents will find the server using multicast LAN packets." },
"maintenanceMode": { "type": "boolean", "default": false, "description": "When enabled the server is in maintenance mode, only administrators can login. Use the maintenance command in server console to change." }, "maintenanceMode": { "type": "boolean", "default": false, "description": "When enabled the server is in maintenance mode, only administrators can login. Use the maintenance command in server console to change." },