From eff853a380c573c7cdbae9f86328d90ff90f0a5c Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 2 May 2022 12:01:32 -0700 Subject: [PATCH] Added PostgreSQL into config.json schema. --- meshcentral-config-schema.json | 65 ++++++++++++++++++++++++++++------ 1 file changed, 54 insertions(+), 11 deletions(-) diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index 575f6335..c4dbb760 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -39,24 +39,67 @@ "type": "object", "description": "Add this section to connect MeshCentral to a MySQL database instance.", "properties": { - "host": { "type": "string", "description": "MySQL hostname" }, - "port": { "type": "number", "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": { + "host": { + "type": "string", + "description": "MySQL hostname" + }, + "port": { + "type": "number", + "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", "description": "SSL Options. Set to true (boolean) for default options.", "properties": { - "caCertPath": { "type": "string", "description": "Absolute path to the CA certificate. Required for self-signed certificates" }, - "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" } + "caCertPath": { + "type": "string", + "description": "Absolute path to the CA certificate. Required for self-signed certificates" + }, + "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." }, "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." },