2020-05-19 03:57:11 +03:00
{
2020-06-15 16:37:53 +03:00
"$schema" : "http://info.meshcentral.com/downloads/meshcentral-config-schema.json" ,
"__comment__" : "This is a sample configuration file, all values and sections that start with underscore (_) are ignored. Edit a section and remove the _ in front of the name. Refer to the user's guide for details." ,
2020-05-19 03:57:11 +03:00
"settings" : {
2020-06-15 23:08:46 +03:00
"_cert" : "myserver.mydomain.com" ,
"_mongoDb" : "mongodb://127.0.0.1:27017" ,
"_mongoDbName" : "meshcentral" ,
"_mongoDbChangeStream" : true ,
"_mongoDumpPath" : "C:\\Program Files\\MongoDB\\Server\\4.2\\bin\\mongodump.exe" ,
2020-05-19 03:57:11 +03:00
"_WANonly" : true ,
"_LANonly" : true ,
2020-06-15 23:08:46 +03:00
"_sessionTime" : 30 ,
"_sessionKey" : "MyReallySecretPassword1" ,
"_sessionSameSite" : "strict" ,
"_dbEncryptKey" : "MyReallySecretPassword2" ,
"_dbRecordsEncryptKey" : "MyReallySecretPassword" ,
"_dbRecordsDecryptKey" : "MyReallySecretPassword" ,
"__dbExpire" : "Amount of time to keep various events in the database, in seconds. Below are the default values." ,
"_dbExpire" : {
2020-05-19 03:57:11 +03:00
"events" : 1728000 ,
"powerevents" : 864000 ,
"statsevents" : 2592000
} ,
2020-06-15 23:08:46 +03:00
"port" : 443 ,
"_portBind" : "127.0.0.1" ,
2020-06-27 00:43:58 +03:00
"_aliasPort" : 444 ,
2020-06-15 23:08:46 +03:00
"_redirPort" : 80 ,
"_redirPortBind" : "127.0.0.1" ,
"_redirAliasPort" : 80 ,
"_agentPort" : 1234 ,
"_agentPortBind" : "127.0.0.1" ,
"_agentAliasPort" : 1234 ,
"_agentAliasDNS" : "agents.myserver.mydomain.com" ,
"_agentPortTls" : true ,
"_exactPorts" : true ,
"_allowLoginToken" : true ,
"_allowFraming" : true ,
"_cookieIpCheck" : false ,
"_cookieEncoding" : "hex" ,
2020-07-18 05:55:49 +03:00
"_compression" : true ,
"_wscompression" : false ,
"_agentwscompression" : true ,
2020-07-22 02:20:17 +03:00
"_agentsInRam" : false ,
2020-06-15 23:08:46 +03:00
"_webRTC" : false ,
"_nice404" : false ,
"_clickOnce" : false ,
"_selfUpdate" : true ,
"_browserPing" : 60 ,
"_browserPong" : 60 ,
"_agentPing" : 60 ,
"_agentPong" : 60 ,
"_agentIdleTimeout" : 150 ,
"_meshErrorLogPath" : "c:\\tmp" ,
"_npmPath" : "c:\\npm.exe" ,
"_npmProxy" : "http://1.2.3.4:80" ,
"_allowHighQualityDesktop" : true ,
"_desktopMultiplex" : true ,
"_userAllowedIP" : "127.0.0.1,192.168.1.0/24" ,
"_userBlockedIP" : "127.0.0.1,::1,192.168.0.100" ,
"_agentAllowedIP" : "192.168.0.100/24" ,
"_agentBlockedIP" : "127.0.0.1,::1" ,
"_authLog" : "c:\\temp\\auth.log" ,
"_manageAllDeviceGroups" : [ "user//admin" ] ,
"_manageCrossDomain" : [ "user//admin" ] ,
"_localDiscovery" : {
2020-05-19 03:57:11 +03:00
"name" : "Local server name" ,
"info" : "Information about this server"
} ,
2020-06-18 13:50:41 +03:00
"_tlsOffload" : "127.0.0.1,::1" ,
"_trustedProxy" : "127.0.0.1,::1" ,
2020-06-15 23:08:46 +03:00
"_mpsPort" : 44330 ,
"_mpsPortBind" : "127.0.0.1" ,
"_mpsAliasPort" : 4433 ,
"_mpsAliasHost" : "mps.mydomain.com" ,
"_mpsTlsOffload" : true ,
"_no2FactorAuth" : true ,
"_log" : "main,web,webrequest,cert" ,
2020-05-19 03:57:11 +03:00
"_syslog" : "meshcentral" ,
"_syslogauth" : "meshcentral-auth" ,
"_syslogjson" : "meshcentral-json" ,
2020-06-15 23:08:46 +03:00
"_webrtcConfig" : {
2020-05-19 03:57:11 +03:00
"iceServers" : [
{ "urls" : "stun:stun.services.mozilla.com" } ,
{ "urls" : "stun:stun.l.google.com:19302" }
]
} ,
2020-06-15 23:08:46 +03:00
"_autoBackup" : {
2020-05-19 03:57:11 +03:00
"backupIntervalHours" : 24 ,
"keepLastDaysBackup" : 10 ,
"zipPassword" : "MyReallySecretPassword3" ,
"_backupPath" : "C:\\backups"
} ,
2020-06-15 23:08:46 +03:00
"_redirects" : {
2020-05-19 03:57:11 +03:00
"meshcommander" : "https://www.meshcommander.com/"
} ,
2020-06-15 23:08:46 +03:00
"__maxInvalidLogin" : "Time in minutes, max amount of bad logins from a source IP in the time before logins are rejected." ,
"_maxInvalidLogin" : {
2020-06-15 16:37:53 +03:00
"time" : 10 ,
"count" : 10 ,
"coolofftime" : 10
} ,
2020-07-03 21:03:15 +03:00
"watchDog" : { "interval" : 100 , "timeout" : 400 } ,
2020-06-15 23:08:46 +03:00
"_plugins" : { "enabled" : true }
2020-05-19 03:57:11 +03:00
} ,
"_domaindefaults" : {
"__comment__" : "Any settings in this section is used as default setting for all domains" ,
2020-06-15 23:08:46 +03:00
"title" : "MyDefaultTitle" ,
"footer" : "Default page footer" ,
"newAccounts" : false
2020-05-19 03:57:11 +03:00
} ,
"_domains" : {
"" : {
2020-06-15 23:08:46 +03:00
"title" : "MyServer" ,
"title2" : "Servername" ,
"_titlePicture" : "title-sample.png" ,
"_userQuota" : 1048576 ,
"_meshQuota" : 248576 ,
"minify" : true ,
"_newAccounts" : true ,
"_newAccountsUserGroups" : [ "ugrp//xxxxxxxxxxxxxxxxx" ] ,
"_userNameIsEmail" : true ,
"_newAccountEmailDomains" : [ "sample.com" ] ,
"_newAccountsRights" : [ "nonewgroups" , "notools" ] ,
"_welcomeText" : "Sample Text on Login Page." ,
"_welcomePicture" : "mainwelcome.jpg" ,
"___hide__" : "Sum of: 1 = Hide header, 2 = Hide tab, 4 = Hide footer, 8 = Hide title, 16 = Hide left bar" ,
"_hide" : 4 ,
"_footer" : "<a href='https://twitter.com/mytwitter'>Twitter</a>" ,
"_certUrl" : "https://192.168.2.106:443/" ,
"_passwordRequirements" : {
2020-06-15 16:37:53 +03:00
"min" : 8 ,
"max" : 128 ,
"upper" : 1 ,
"lower" : 1 ,
"numeric" : 1 ,
"nonalpha" : 1 ,
"reset" : 90 ,
"force2factor" : true ,
2020-08-16 23:44:54 +03:00
"skip2factor" : "127.0.0.1,192.168.2.0/24" ,
"oldPasswordBan" : 5 ,
"banCommonPasswords" : false
2020-06-15 16:37:53 +03:00
} ,
2020-06-15 23:08:46 +03:00
"_agentInviteCodes" : true ,
"_agentNoProxy" : true ,
"_geoLocation" : true ,
2020-06-09 22:03:30 +03:00
"_novnc" : false ,
2020-06-13 15:41:53 +03:00
"_mstsc" : true ,
2020-07-10 20:33:41 +03:00
"_WebEmailsPath" : "/myserver/email-templates" ,
2020-06-13 15:41:53 +03:00
"_consentMessages" : {
2020-06-15 23:08:46 +03:00
"title" : "MeshCentral" ,
"desktop" : "{0} requesting remote desktop access. Grant access?" ,
"terminal" : "{0} requesting remote terminal access. Grant access?" ,
"files" : "{0} requesting remote files access. Grant access?"
2020-06-13 15:41:53 +03:00
} ,
2020-06-13 21:36:50 +03:00
"_notificationMessages" : {
2020-06-15 23:08:46 +03:00
"title" : "MeshCentral" ,
"desktop" : "{0} started a remote desktop session." ,
"terminal" : "{0} started a remote terminal session." ,
"files" : "{0} started a remote files session."
2020-06-13 21:36:50 +03:00
} ,
2020-06-15 23:08:46 +03:00
"_userAllowedIP" : "127.0.0.1,192.168.1.0/24" ,
"_userBlockedIP" : "127.0.0.1,::1,192.168.0.100" ,
"_agentAllowedIP" : "192.168.0.100/24" ,
"_agentBlockedIP" : "127.0.0.1,::1" ,
2020-08-17 03:27:52 +03:00
"_orphanAgentUser" : "admin" ,
2020-06-15 23:08:46 +03:00
"___userSessionIdleTimeout__" : "Number of user idle minutes before auto-disconnect" ,
"_userSessionIdleTimeout" : 30 ,
"__userConsentFlags__" : "Set to: 1 for desktop, 2 for terminal, 3 for files, 7 for all" ,
"_userConsentFlags" : 7 ,
"_urlSwitching" : false ,
"_desktopPrivacyBarText" : "Your privacy bar message" ,
"_limits" : {
"_maxDevices" : 100 ,
"_maxUserAccounts" : 100 ,
"_maxUserSessions" : 100 ,
"_maxAgentSessions" : 100 ,
"maxSingleUserSessions" : 10
2020-05-19 03:57:11 +03:00
} ,
2020-06-19 20:37:55 +03:00
"_amtScanOptions" : [
2020-06-21 02:27:31 +03:00
"LabNetwork 192.168.15.0/23" ,
"SalesNetwork 192.168.8.0/24"
2020-06-19 20:37:55 +03:00
] ,
2020-06-15 23:08:46 +03:00
"_amtAcmActivation" : {
2020-05-19 03:57:11 +03:00
"log" : "amtactivation.log" ,
"certs" : {
"mycertname" : {
"certfiles" : [ "amtacm-leafcert.crt" , "amtacm-intermediate1.crt" , "amtacm-intermediate2.crt" , "amtacm-rootcert.crt" ] ,
"keyfile" : "amtacm-leafcert.key"
}
}
} ,
2020-06-15 23:08:46 +03:00
"_redirects" : {
2020-05-19 03:57:11 +03:00
"meshcommander" : "https://www.meshcommander.com/"
} ,
2020-06-15 16:37:53 +03:00
"_yubikey" : {
"id" : "0000" ,
"secret" : "xxxxxxxxxxxxxxxxxxxxx" ,
"_proxy" : "http://myproxy.domain.com:80"
} ,
2020-06-15 23:08:46 +03:00
"_httpHeaders" : {
2020-05-19 03:57:11 +03:00
"Strict-Transport-Security" : "max-age=360000" ,
"x-frame-options" : "SAMEORIGIN" ,
"Content-Security-Policy" : "default-src 'none'; script-src 'self' 'unsafe-inline'; connect-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; frame-src 'self'; media-src 'self'"
} ,
2020-07-03 21:03:15 +03:00
"_agentConfig" : [ "webSocketMaskOverride=1" , "coreDumpEnabled=1" ] ,
2020-06-15 23:08:46 +03:00
"_sessionRecording" : {
2020-05-19 03:57:11 +03:00
"_filepath" : "C:\\temp" ,
"_index" : true ,
"_maxRecordings" : 10 ,
"_maxRecordingSizeMegabytes" : 3 ,
"__protocols__" : "Is an array: 1 = Terminal, 2 = Desktop, 5 = Files, 100 = Intel AMT WSMAN, 101 = Intel AMT Redirection" ,
"protocols" : [ 1 , 2 , 101 ]
} ,
"_authStrategies" : {
2020-06-15 16:37:53 +03:00
"__comment__" : "This section is used to allow users to login using other accounts. You will need to get an API key from the services and register callback URL's" ,
2020-05-19 03:57:11 +03:00
"twitter" : {
2020-05-27 11:17:03 +03:00
"_callbackurl" : "https://server/auth-twitter-callback" ,
2020-05-24 10:04:49 +03:00
"newAccounts" : true ,
2020-05-28 04:40:39 +03:00
"_newAccountsUserGroups" : [ "ugrp//xxxxxxxxxxxxxxxxx" ] ,
2020-05-19 03:57:11 +03:00
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxx" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
} ,
"google" : {
2020-05-27 11:17:03 +03:00
"_callbackurl" : "https://server/auth-google-callback" ,
2020-05-24 10:04:49 +03:00
"newAccounts" : true ,
2020-05-28 04:40:39 +03:00
"_newAccountsUserGroups" : [ "ugrp//xxxxxxxxxxxxxxxxx" ] ,
2020-05-19 03:57:11 +03:00
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxx"
} ,
"github" : {
2020-05-27 11:17:03 +03:00
"_callbackurl" : "https://server/auth-github-callback" ,
2020-05-24 10:04:49 +03:00
"newAccounts" : true ,
2020-05-28 04:40:39 +03:00
"_newAccountsUserGroups" : [ "ugrp//xxxxxxxxxxxxxxxxx" ] ,
2020-05-19 03:57:11 +03:00
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxx" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
} ,
"reddit" : {
2020-05-27 11:17:03 +03:00
"_callbackurl" : "https://server/auth-reddit-callback" ,
2020-05-24 10:04:49 +03:00
"newAccounts" : true ,
2020-05-28 04:40:39 +03:00
"_newAccountsUserGroups" : [ "ugrp//xxxxxxxxxxxxxxxxx" ] ,
2020-05-19 03:57:11 +03:00
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxx" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
2020-05-20 10:39:17 +03:00
} ,
2020-05-24 10:04:49 +03:00
"azure" : {
2020-05-27 11:17:03 +03:00
"_callbackurl" : "https://server/auth-azure-callback" ,
2020-05-24 10:04:49 +03:00
"newAccounts" : true ,
2020-05-28 04:40:39 +03:00
"_newAccountsUserGroups" : [ "ugrp//xxxxxxxxxxxxxxxxx" ] ,
2020-05-24 10:04:49 +03:00
"clientid" : "00000000-0000-0000-0000-000000000000" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ,
"tenantid" : "00000000-0000-0000-0000-000000000000"
} ,
2020-05-20 10:39:17 +03:00
"jumpcloud" : {
2020-05-27 11:17:03 +03:00
"_callbackurl" : "https://server/auth-jumpcloud-callback" ,
2020-05-24 10:04:49 +03:00
"newAccounts" : true ,
2020-05-28 04:40:39 +03:00
"_newAccountsUserGroups" : [ "ugrp//xxxxxxxxxxxxxxxxx" ] ,
2020-05-20 10:39:17 +03:00
"entityid" : "meshcentral" ,
"idpurl" : "https://sso.jumpcloud.com/saml2/saml2" ,
"cert" : "jumpcloud-saml.pem"
} ,
"saml" : {
2020-05-27 11:17:03 +03:00
"_callbackurl" : "https://server/auth-saml-callback" ,
2020-05-29 03:03:40 +03:00
"_disableRequestedAuthnContext" : true ,
2020-05-24 10:04:49 +03:00
"newAccounts" : true ,
2020-05-28 04:40:39 +03:00
"_newAccountsUserGroups" : [ "ugrp//xxxxxxxxxxxxxxxxx" ] ,
2020-05-29 04:04:30 +03:00
"_newAccountsRights" : [ "nonewgroups" , "notools" ] ,
2020-05-20 10:39:17 +03:00
"entityid" : "meshcentral" ,
"idpurl" : "https://server/saml2" ,
"cert" : "saml.pem"
2020-05-19 03:57:11 +03:00
}
}
} ,
"_customer1" : {
2020-06-15 23:08:46 +03:00
"_dns" : "customer1.myserver.com" ,
"_title" : "Customer1" ,
"_title2" : "TestServer" ,
"_newAccounts" : 1 ,
"_auth" : "sspi" ,
"__auth" : "ldap" ,
2020-05-19 03:57:11 +03:00
"_LDAPUserName" : "gecos" ,
"_LDAPUserKey" : "uid" ,
"_LDAPUserEmail" : "otherMail" ,
"_LDAPPptions" : {
2020-06-15 23:08:46 +03:00
"url" : "test" ,
2020-05-19 03:57:11 +03:00
"anne" : {
"gecos" : "Anne O'Nyme" ,
"displayName" : "O Nyme anne" ,
"uid" : "anneonyme" ,
"mail" : "anneonyme@example.com" ,
"email" : "anneonyme@example.com" ,
"otherMail" : [ "other.anneonyme@example.com" , "anneonyme@example.com" ]
} ,
"so" : {
"displayName" : "Sticker Sophie" ,
"gecos" : "Sophie Sticker" ,
"uid" : "ssticker" ,
"mail" : "ssticker@example.com" ,
"email" : "ssticker@example.com" ,
"otherMail" : [ "other.ssticker@example.com" , "ssticker@example.com" ]
}
} ,
"__LDAPOptions" : {
"URL" : "ldap://1.2.3.4:389" ,
"BindDN" : "CN=svc_meshcentral,CN=Users,DC=meshcentral,DC=local" ,
"BindCredentials" : "Password.1" ,
"SearchBase" : "DC=meshcentral,DC=local" ,
"SearchFilter" : "(sAMAccountName={{username}})"
} ,
2020-06-15 23:08:46 +03:00
"_footer" : "Test" ,
"_certUrl" : "https://192.168.2.106:443/"
2020-05-19 03:57:11 +03:00
} ,
"_info" : {
"_share" : "C:\\ExtraWebSite"
}
} ,
"_letsencrypt" : {
"__comment__" : "Requires NodeJS 8.x or better, Go to https://letsdebug.net/ first before trying Let's Encrypt." ,
"email" : "myemail@myserver.com" ,
"names" : "myserver.com,customer1.myserver.com" ,
"production" : false
} ,
"_peers" : {
"serverId" : "server1" ,
"servers" : {
"server1" : { "url" : "wss://192.168.2.133:443/" } ,
"server2" : { "url" : "wss://192.168.1.106:443/" }
}
} ,
"_smtp" : {
"host" : "smtp.myserver.com" ,
"port" : 25 ,
"from" : "myemail@myserver.com" ,
"__tls__" : "When 'tls' is set to true, TLS is used immidiatly when connecting. For SMTP servers that use TLSSTART, set this to 'false' and TLS will still be used." ,
"tls" : false ,
"___tlscertcheck__" : "When set to false, the TLS certificate of the SMTP server is not checked." ,
"_tlscertcheck" : false ,
"__tlsstrict__" : "When set to true, TLS cypher setup is more limited, SSLv2 and SSLv3 are not allowed." ,
"_tlsstrict" : true
} ,
"_sms" : {
"provider" : "twilio" ,
"sid" : "ACxxxxxxxxx" ,
"auth" : "xxxxxxx" ,
"from" : "+1-555-555-5555"
} ,
"__sms" : {
2020-06-15 16:37:53 +03:00
"provider" : "plivo" ,
"id" : "xxxxxxx" ,
"token" : "xxxxxxx" ,
"from" : "1-555-555-5555"
2020-05-19 03:57:11 +03:00
}
}