2018-01-26 03:12:53 +03:00
{
2020-04-10 08:44:05 +03:00
"__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." ,
2018-07-24 03:34:24 +03:00
"settings" : {
2019-02-25 22:13:13 +03:00
"_Cert" : "myserver.mydomain.com" ,
2019-07-30 04:21:52 +03:00
"_MongoDb" : "mongodb://127.0.0.1:27017" ,
"_MongoDbName" : "meshcentral" ,
2019-05-29 03:42:11 +03:00
"_MongoDbChangeStream" : true ,
2020-03-15 11:24:20 +03:00
"_MongoDumpPath" : "C:\\Program Files\\MongoDB\\Server\\4.2\\bin\\mongodump.exe" ,
2018-07-24 03:34:24 +03:00
"_WANonly" : true ,
"_LANonly" : true ,
2018-08-23 02:18:01 +03:00
"_SessionTime" : 30 ,
2019-02-02 02:16:46 +03:00
"_SessionKey" : "MyReallySecretPassword1" ,
2019-08-23 01:31:39 +03:00
"_SessionSameSite" : "strict" ,
2019-02-02 02:16:46 +03:00
"_DbEncryptKey" : "MyReallySecretPassword2" ,
2019-10-03 23:32:54 +03:00
"_DbRecordsEncryptKey" : "MyReallySecretPassword" ,
"_DbRecordsDecryptKey" : "MyReallySecretPassword" ,
2020-03-16 23:30:12 +03:00
"__DbExpire" : "Amount of time to keep various events in the database, in seconds. Below are the default values." ,
2019-02-25 22:13:13 +03:00
"_DbExpire" : {
"events" : 1728000 ,
2020-03-16 23:30:12 +03:00
"powerevents" : 864000 ,
"statsevents" : 2592000
2019-02-25 22:13:13 +03:00
} ,
2018-07-24 03:34:24 +03:00
"_Port" : 443 ,
2020-03-15 11:24:20 +03:00
"_AliasPort" : 444 ,
2018-07-24 03:34:24 +03:00
"_RedirPort" : 80 ,
2020-05-03 20:46:20 +03:00
"_RedirAliasPort" : 80 ,
"_AgentPort" : 1234 ,
2020-05-04 08:37:51 +03:00
"_AgentAliasPort" : 1234 ,
2020-05-10 23:45:10 +03:00
"_AgentAliasDNS" : "agents.myserver.mydomain.com" ,
2020-03-18 15:30:19 +03:00
"_ExactPorts" : true ,
2018-07-24 03:34:24 +03:00
"_AllowLoginToken" : true ,
"_AllowFraming" : true ,
2020-05-03 20:46:20 +03:00
"_CookieIpCheck" : false ,
"_CookieEncoding" : "hex" ,
2018-07-24 03:34:24 +03:00
"_WebRTC" : false ,
2019-08-23 01:31:39 +03:00
"_Nice404" : false ,
2018-07-24 03:34:24 +03:00
"_ClickOnce" : false ,
2018-09-19 19:15:31 +03:00
"_SelfUpdate" : true ,
2020-05-07 05:23:11 +03:00
"_BrowserPing" : 60 ,
"_BrowserPong" : 60 ,
2019-05-28 20:58:46 +03:00
"_AgentPing" : 60 ,
"_AgentPong" : 60 ,
2019-06-18 01:20:47 +03:00
"_AgentIdleTimeout" : 150 ,
2019-07-09 01:59:44 +03:00
"_MeshErrorLogPath" : "c:\\tmp" ,
2019-07-18 01:57:42 +03:00
"_NpmPath" : "c:\\npm.exe" ,
"_NpmProxy" : "http://1.2.3.4:80" ,
2019-05-28 20:10:56 +03:00
"_AllowHighQualityDesktop" : true ,
2020-04-30 12:02:23 +03:00
"_DesktopMultiplex" : true ,
2019-01-31 00:43:42 +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-02-17 21:24:32 +03:00
"_AuthLog" : "c:\\temp\\auth.log" ,
2019-02-25 22:13:13 +03:00
"_LocalDiscovery" : {
"name" : "Local server name" ,
"info" : "Information about this server"
} ,
2020-05-08 00:48:51 +03:00
"_TlsOffload" : "127.0.0.1,::1" ,
"_TrustedProxy" : "127.0.0.1,::1" ,
2019-12-01 23:52:32 +03:00
"_MpsPort" : 44330 ,
"_MpsAliasPort" : 4433 ,
"_MpsAliasHost" : "mps.mydomain.com" ,
2018-12-20 23:12:24 +03:00
"_MpsTlsOffload" : true ,
2019-03-27 00:11:51 +03:00
"_No2FactorAuth" : true ,
2019-11-20 22:12:35 +03:00
"_Log" : "main,web,webrequest,cert" ,
2020-04-20 12:44:14 +03:00
"_syslog" : "meshcentral" ,
"_syslogauth" : "meshcentral-auth" ,
"_syslogjson" : "meshcentral-json" ,
2019-02-25 22:13:13 +03:00
"_WebRtConfig" : {
"iceServers" : [
{ "urls" : "stun:stun.services.mozilla.com" } ,
{ "urls" : "stun:stun.l.google.com:19302" }
]
2019-05-17 22:40:15 +03:00
} ,
"_AutoBackup" : {
2019-05-29 03:42:11 +03:00
"backupIntervalHours" : 24 ,
2019-05-17 22:40:15 +03:00
"keepLastDaysBackup" : 10 ,
2019-05-23 01:22:10 +03:00
"zipPassword" : "MyReallySecretPassword3" ,
"_backupPath" : "C:\\backups"
2019-06-07 20:20:54 +03:00
} ,
"_Redirects" : {
"meshcommander" : "https://www.meshcommander.com/"
2019-11-19 04:31:42 +03:00
} ,
"__MaxInvalidLogin" : "Time in minutes, max amount of bad logins from a source IP in the time before logins are rejected." ,
2020-04-18 09:52:35 +03:00
"_MaxInvalidLogin" : { "time" : 10 , "count" : 10 , "coolofftime" : 10 } ,
"_Plugins" : { "enabled" : true }
2018-01-26 03:12:53 +03:00
} ,
2020-04-30 12:02:23 +03:00
"_domaindefaults" : {
"__comment__" : "Any settings in this section is used as default setting for all domains" ,
"Title" : "MyDefaultTitle" ,
"Footer" : "Default page footer" ,
"NewAccounts" : false
} ,
2018-01-26 03:12:53 +03:00
"_domains" : {
"" : {
2018-12-21 01:14:37 +03:00
"Title" : "MyServer" ,
"Title2" : "Servername" ,
2019-02-27 01:39:45 +03:00
"_TitlePicture" : "title-sample.png" ,
"_UserQuota" : 1048576 ,
"_MeshQuota" : 248576 ,
2020-05-02 09:53:32 +03:00
"Minify" : true ,
2019-04-23 23:42:54 +03:00
"_NewAccounts" : true ,
2019-07-09 01:59:44 +03:00
"_UserNameIsEmail" : true ,
2019-02-27 01:39:45 +03:00
"_NewAccountEmailDomains" : [ "sample.com" ] ,
2019-05-13 05:14:24 +03:00
"_NewAccountsRights" : [ "nonewgroups" , "notools" ] ,
2020-02-18 00:01:13 +03:00
"_ManageAllDeviceGroups" : [ "admin" ] ,
2020-03-15 11:24:20 +03:00
"_WelcomeText" : "Sample Text on Login Page." ,
"_WelcomePicture" : "mainwelcome.jpg" ,
2020-04-18 21:38:01 +03:00
"___Hide__" : "Sum of: 1 = Hide header, 2 = Hide tab, 4 = Hide footer, 8 = Hide title, 16 = Hide left bar" ,
"_Hide" : 4 ,
2020-03-15 11:24:20 +03:00
"_Footer" : "<a href='https://twitter.com/mytwitter'>Twitter</a>" ,
2018-12-21 01:14:37 +03:00
"_CertUrl" : "https://192.168.2.106:443/" ,
2019-11-29 07:57:34 +03:00
"_PasswordRequirements" : { "min" : 8 , "max" : 128 , "upper" : 1 , "lower" : 1 , "numeric" : 1 , "nonalpha" : 1 , "reset" : 90 , "force2factor" : true , "skip2factor" : "127.0.0.1,192.168.2.0/24" } ,
2020-05-01 22:36:28 +03:00
"_AgentInviteCodes" : true ,
2019-01-31 00:43:42 +03:00
"_AgentNoProxy" : true ,
2019-02-27 03:26:33 +03:00
"_GeoLocation" : true ,
2019-01-05 02:29:27 +03:00
"_UserAllowedIP" : "127.0.0.1,192.168.1.0/24" ,
2019-01-31 00:43:42 +03:00
"_UserBlockedIP" : "127.0.0.1,::1,192.168.0.100" ,
"_AgentAllowedIP" : "192.168.0.100/24" ,
2019-02-11 03:04:36 +03:00
"_AgentBlockedIP" : "127.0.0.1,::1" ,
2019-05-31 19:58:23 +03:00
"___UserSessionIdleTimeout__" : "Number of user idle minutes before auto-disconnect" ,
"_UserSessionIdleTimeout" : 30 ,
2019-04-13 00:19:03 +03:00
"__UserConsentFlags__" : "Set to: 1 for desktop, 2 for terminal, 3 for files, 7 for all" ,
"_UserConsentFlags" : 7 ,
2020-05-06 22:15:47 +03:00
"_UrlSwitching" : false ,
2020-04-18 21:38:01 +03:00
"_DesktopPrivacyBarText" : "Your privacy bar message" ,
2019-02-12 01:41:15 +03:00
"_Limits" : {
2019-06-06 01:24:07 +03:00
"_MaxDevices" : 100 ,
2019-02-19 05:08:36 +03:00
"_MaxUserAccounts" : 100 ,
"_MaxUserSessions" : 100 ,
"_MaxAgentSessions" : 100 ,
"MaxSingleUserSessions" : 10
2019-02-12 01:41:15 +03:00
} ,
2019-06-21 04:23:52 +03:00
"_AmtAcmActivation" : {
"log" : "amtactivation.log" ,
"certs" : {
"mycertname" : {
"certfiles" : [ "amtacm-leafcert.crt" , "amtacm-intermediate1.crt" , "amtacm-intermediate2.crt" , "amtacm-rootcert.crt" ] ,
"keyfile" : "amtacm-leafcert.key"
}
}
} ,
2019-06-08 02:44:00 +03:00
"_Redirects" : {
"meshcommander" : "https://www.meshcommander.com/"
} ,
2019-02-19 05:08:36 +03:00
"_yubikey" : { "id" : "0000" , "secret" : "xxxxxxxxxxxxxxxxxxxxx" , "_proxy" : "http://myproxy.domain.com:80" } ,
2019-09-13 01:12:40 +03:00
"_httpheaders" : {
"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'"
} ,
2019-08-06 23:27:24 +03:00
"_agentConfig" : [ "webSocketMaskOverride=1" ] ,
"_SessionRecording" : {
"_filepath" : "C:\\temp" ,
2020-02-14 22:20:06 +03:00
"_index" : true ,
2020-04-30 12:02:23 +03:00
"_maxRecordings" : 10 ,
"_maxRecordingSizeMegabytes" : 3 ,
2019-08-08 02:07:12 +03:00
"__protocols__" : "Is an array: 1 = Terminal, 2 = Desktop, 5 = Files, 100 = Intel AMT WSMAN, 101 = Intel AMT Redirection" ,
"protocols" : [ 1 , 2 , 101 ]
2020-05-15 01:09:48 +03:00
} ,
"_authStrategies" : {
"__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" ,
"twitter" : {
"__callbackurl" : "https://server/auth-twitter-callback" ,
2020-05-15 03:06:55 +03:00
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxx" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
2020-05-15 01:09:48 +03:00
} ,
"google" : {
"__callbackurl" : "https://server/auth-google-callback" ,
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxx"
} ,
"github" : {
"__callbackurl" : "https://server/auth-github-callback" ,
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxx" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
} ,
"reddit" : {
"__callbackurl" : "https://server/auth-reddit-callback" ,
"clientid" : "xxxxxxxxxxxxxxxxxxxxxxx" ,
"clientsecret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
2019-08-06 23:27:24 +03:00
}
2018-01-26 03:12:53 +03:00
} ,
2019-08-11 08:34:21 +03:00
"_customer1" : {
"_DNS" : "customer1.myserver.com" ,
"_Title" : "Customer1" ,
"_Title2" : "TestServer" ,
"_NewAccounts" : 1 ,
"_Auth" : "sspi" ,
2020-05-15 22:06:03 +03:00
"__Auth" : "ldap" ,
"_LDAPUserName" : "gecos" ,
"_LDAPUserKey" : "uid" ,
"_LDAPUserEmail" : "otherMail" ,
"_LDAPPptions" : {
"URL" : "test" ,
"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}})"
} ,
2019-08-11 08:34:21 +03:00
"_Footer" : "Test" ,
2018-12-21 01:14:37 +03:00
"_CertUrl" : "https://192.168.2.106:443/"
2018-01-26 03:12:53 +03:00
} ,
2019-08-11 08:34:21 +03:00
"_info" : {
"_share" : "C:\\ExtraWebSite"
2018-01-26 03:12:53 +03:00
}
} ,
"_letsencrypt" : {
2019-11-26 21:54:45 +03:00
"__comment__" : "Requires NodeJS 10.12 or better, Go to https://letsdebug.net/ first before trying Let's Encrypt." ,
2020-02-06 02:41:11 +03:00
"email" : "myemail@myserver.com" ,
2018-01-26 03:12:53 +03:00
"names" : "myserver.com,customer1.myserver.com" ,
"rsaKeySize" : 3072 ,
"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" ,
2019-09-16 20:49:35 +03:00
"__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
2020-04-23 01:29:26 +03:00
} ,
"_sms" : {
"provider" : "twilio" ,
"sid" : "ACxxxxxxxxx" ,
"auth" : "xxxxxxx" ,
"from" : "+1-555-555-5555"
} ,
"__sms" : {
"provider" : "plivo" ,
"id" : "xxxxxxx" ,
"token" : "xxxxxxx" ,
"from" : "1-555-555-5555"
2018-01-26 03:12:53 +03:00
}
}