Added PostgreSQL into config.json schema.
Ylian Saint-Hilaire committed
May 2, 2022 at 12:01 UTC
eff853a380c573c7cdbae9f86328d90ff90f0a5c
1 file changed
+54
-11
meshcentral-config-schema.json
+54
-11
@@ -39,24 +39,67 @@
39
"type": "object",
40
"description": "Add this section to connect MeshCentral to a MySQL database instance.",
41
"properties": {
42
- "host": { "type": "string", "description": "MySQL hostname" },
43
- "port": { "type": "number", "description": "MySQL port number" },
44
- "user": { "type": "string", "description": "MySQL username" },
45
- "password": { "type": "string", "description": "MySQL password" },
46
- "database": { "type": "string", "default": "meshcentral", "description": "Name of MySQL database used" },
47
- "awsrds": { "type": "boolean", "default": false, "description": "Set true to resolve LOCK TABLE permissions on AWS RDS." },
48
- "ssl": {
42
+ "host": {
43
+ "type": "string",
44
+ "description": "MySQL hostname"
45
+ },
46
+ "port": {
47
+ "type": "number",
48
+ "description": "MySQL port number"
49
+ },
50
+ "user": {
51
+ "type": "string",
52
+ "description": "MySQL username"
53
+ },
54
+ "password": {
55
+ "type": "string",
56
+ "description": "MySQL password"
57
+ },
58
+ "database": {
59
+ "type": "string",
60
+ "default": "meshcentral",
61
+ "description": "Name of MySQL database used"
62
+ },
63
+ "awsrds": {
64
+ "type": "boolean",
65
+ "default": false,
66
+ "description": "Set true to resolve LOCK TABLE permissions on AWS RDS."
67
+ },
68
+ "ssl": {
69
"type": "object",
70
"description": "SSL Options. Set to true (boolean) for default options.",
71
"properties": {
52
- "caCertPath": { "type": "string", "description": "Absolute path to the CA certificate. Required for self-signed certificates" },
53
- "clientCertPath": { "type": "string", "description": "Absolute path to the client certificate. Required for two-way SSL Authentication" },
54
- "clientKeyPath": { "type": "string", "description": "Absolute path to the client key. Required for two-way SSL Authentication" },
55
- "dontCheckServerIdentity": { "type": "boolean", "description": "Set true to not check the server hostname during verification" }
72
+ "caCertPath": {
73
+ "type": "string",
74
+ "description": "Absolute path to the CA certificate. Required for self-signed certificates"
75
+ },
76
+ "clientCertPath": {
77
+ "type": "string",
78
+ "description": "Absolute path to the client certificate. Required for two-way SSL Authentication"
79
+ },
80
+ "clientKeyPath": {
81
+ "type": "string",
82
+ "description": "Absolute path to the client key. Required for two-way SSL Authentication"
83
+ },
84
+ "dontCheckServerIdentity": {
85
+ "type": "boolean",
86
+ "description": "Set true to not check the server hostname during verification"
87
+ }
88
}
89
}
90
}
91
},
92
+ "postgres": {
93
+ "type": "object",
94
+ "description": "Add this section to connect MeshCentral to a PostgreSQL database instance.",
95
+ "properties": {
96
+ "host": { "type": "string", "description": "PostgreSQL hostname" },
97
+ "user": { "type": "string", "description": "PostgreSQL username" },
98
+ "port": { "type": "number", "description": "PostgreSQL port number" },
99
+ "password": { "type": "string", "description": "PostgreSQL password" },
100
+ "database": { "type": "string", "default": "meshcentral", "description": "Name of PostgreSQL database used" }
101
+ }
102
+ },
103
"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." },
104
"LANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral LAN features are enabled and agents will find the server using multicast LAN packets." },
105
"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." },