This section will go into how to configure a local database as backend.
Following the schema we make the following changes to our config.json.
Some required keys have been omitted to focus on database configuration. Do not remove these from your config.
By default MeshCentral uses NeDB. To change to another database type, do the following:
MeshCentral Cheatsheet:
Sqlite3:
{
"$schema": "https://raw.githubusercontent.com/Ylianst/MeshCentral/master/meshcentral-config-schema.json",
"__comment__": "Omitted these keys to focus on the database",
"settings": {
"sqlite3": {
"name": "meshcentral-db"
}
},
"domains": {
"": {
"__comment__": "Omitted these keys to focus on the database",
}
},
"_letsencrypt": {
"__comment__": "Omitted these keys to focus on the database",
}
}
Acebase:
{
"$schema": "https://raw.githubusercontent.com/Ylianst/MeshCentral/master/meshcentral-config-schema.json",
"__comment__": "Omitted these keys to focus on the database",
"settings": {
"acebase": {
"sponsor": false
}
},
"domains": {
"": {
"__comment__": "Omitted these keys to focus on the database",
}
},
"_letsencrypt": {
"__comment__": "Omitted these keys to focus on the database",
}
}