Added MariaDB and MySQL to config.json schema.
Ylian Saint-Hilaire committed
Mar 8, 2021 at 11:24 UTC
24d422b34cf548449f806abf86121609f34693b2
1 file changed
+21
meshcentral-config-schema.json
+21
@@ -12,6 +12,27 @@
12
"mongoDbName": { "type": "string" },
13
"mongoDbChangeStream": { "type": "boolean", "default": false },
14
"mongoDbBulkOperations": { "type": "boolean", "default": false },
15
+ "mariaDB": {
16
+ "type": "object",
17
+ "description": "Add this section to connect MeshCentral to a MariaDB database instance.",
18
+ "properties": {
19
+ "host": { "type": "string", "description": "MariaDB hostname" },
20
+ "user": { "type": "string", "description": "MariaDB username" },
21
+ "port": { "type": "number", "description": "MariaDB port number" },
22
+ "password": { "type": "string", "description": "MariaDB password" },
23
+ "connectionLimit": { "type": "number", "description": "MariaDB connection limit" }
24
+ }
25
+ },
26
+ "mySQL": {
27
+ "type": "object",
28
+ "description": "Add this section to connect MeshCentral to a MySQL database instance.",
29
+ "properties": {
30
+ "host": { "type": "string", "description": "MySQL hostname" },
31
+ "port": { "type": "number", "description": "MySQL port number" },
32
+ "user": { "type": "string", "description": "MySQL username" },
33
+ "password": { "type": "string", "description": "MySQL password" }
34
+ }
35
+ },
36
"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." },
37
"LANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral LAN features are enabled and agents will find the server using multicast LAN packets." },
38
"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." },