2016-10-05 02:58:05 +00:00
{
2016-12-22 14:03:04 +00:00
"test": {
2016-12-24 14:04:18 +00:00
"db": {
"dialect": "sqlite",
2017-02-04 05:31:37 +00:00
"storage": ":memory:"
2019-10-29 08:59:42 +00:00
},
"linkifyHeaderStyle": "gfm"
2016-12-22 14:03:04 +00:00
},
2016-10-05 02:58:05 +00:00
"development": {
2018-11-13 22:29:33 +00:00
"loglevel": "debug",
2017-10-12 23:09:04 +00:00
"hsts": {
"enable": false
},
2016-10-05 02:58:05 +00:00
"db": {
2017-02-04 05:31:37 +00:00
"dialect": "sqlite",
2018-06-22 19:07:30 +00:00
"storage": "./db.codimd.sqlite"
2019-10-29 08:59:42 +00:00
},
"linkifyHeaderStyle": "gfm"
2016-10-05 02:58:05 +00:00
},
"production": {
"domain": "localhost",
2018-11-21 10:14:59 +00:00
"loglevel": "info",
2017-10-12 23:09:04 +00:00
"hsts": {
2017-10-21 23:22:48 +00:00
"enable": true,
2019-03-04 15:59:32 +00:00
"maxAgeSeconds": 31536000,
2017-10-21 23:22:48 +00:00
"includeSubdomains": true,
"preload": true
2017-10-12 23:09:04 +00:00
},
2018-04-14 20:18:00 +00:00
"csp": {
2017-10-21 23:22:48 +00:00
"enable": true,
2017-10-20 10:31:16 +00:00
"directives": {
},
2018-04-14 20:18:00 +00:00
"upgradeInsecureRequests": "auto",
2018-03-30 14:33:32 +00:00
"addDefaults": true,
"addDisqus": true,
"addGoogleAnalytics": true
2017-10-12 23:09:04 +00:00
},
2016-10-05 02:58:05 +00:00
"db": {
"username": "",
"password": "",
2018-06-22 19:07:30 +00:00
"database": "codimd",
2016-10-05 02:58:05 +00:00
"host": "localhost",
"port": "5432",
"dialect": "postgres"
},
"facebook": {
"clientID": "change this",
"clientSecret": "change this"
},
"twitter": {
"consumerKey": "change this",
"consumerSecret": "change this"
},
"github": {
"clientID": "change this",
"clientSecret": "change this"
},
"gitlab": {
"baseURL": "change this",
"clientID": "change this",
2017-03-14 10:04:23 +00:00
"clientSecret": "change this",
2018-07-30 13:47:09 +00:00
"scope": "use 'read_user' scope for auth user only or remove this property if you need gitlab snippet import/export support (will result to be default scope 'api')",
"version": "use 'v4' if gitlab version > 11, 'v3' otherwise. Default to 'v4'"
2016-10-05 02:58:05 +00:00
},
2017-10-29 10:16:40 +00:00
"mattermost": {
"baseURL": "change this",
"clientID": "change this",
"clientSecret": "change this"
},
2016-10-05 02:58:05 +00:00
"dropbox": {
"clientID": "change this",
2017-01-14 06:17:20 +00:00
"clientSecret": "change this",
"appKey": "change this"
2016-10-05 02:58:05 +00:00
},
"google": {
"clientID": "change this",
2017-01-14 06:17:20 +00:00
"clientSecret": "change this",
"apiKey": "change this"
2016-10-05 02:58:05 +00:00
},
2016-12-13 21:31:35 +00:00
"ldap": {
"url": "ldap://change_this",
"bindDn": null,
"bindCredentials": null,
"searchBase": "change this",
"searchFilter": "change this",
2017-12-09 19:21:50 +00:00
"searchAttributes": ["change this"],
2018-03-01 22:51:47 +00:00
"usernameField": "change this e.g. cn",
"useridField": "change this e.g. uid",
2016-12-13 21:31:35 +00:00
"tlsOptions": {
"changeme": "See https://nodejs.org/api/tls.html#tls_tls_connect_options_callback"
}
},
2017-11-28 03:46:58 +00:00
"saml": {
"idpSsoUrl": "change: authentication endpoint of IdP",
"idpCert": "change: certificate file path of IdP in PEM format",
"issuer": "change or delete: identity of the service provider (default: serverurl)",
"identifierFormat": "change or delete: name identifier format (default: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress')",
2018-12-12 09:40:24 +00:00
"disableRequestedAuthnContext": "change or delete: true to allow any authentication method, false restricts to password authentication method (default: false)",
2017-11-28 03:46:58 +00:00
"groupAttribute": "change or delete: attribute name for group list (ex: memberOf)",
"requiredGroups": [ "change or delete: group names that allowed" ],
"externalGroups": [ "change or delete: group names that not allowed" ],
"attribute": {
"id": "change or delete this: attribute map for `id` (default: NameID)",
"username": "change or delete this: attribute map for `username` (default: NameID)",
"email": "change or delete this: attribute map for `email` (default: NameID)"
}
},
2016-10-05 02:58:05 +00:00
"imgur": {
"clientID": "change this"
2017-10-26 07:13:29 +00:00
},
2018-01-23 10:58:37 +00:00
"minio": {
"accessKey": "change this",
"secretKey": "change this",
"endPoint": "change this",
"secure": true,
"port": 9000
},
2017-10-26 07:13:29 +00:00
"s3": {
"accessKeyId": "change this",
"secretAccessKey": "change this",
"region": "change this"
},
2018-05-31 11:15:41 +00:00
"s3bucket": "change this",
"azure":
{
"connectionString": "change this",
"container": "change this"
2018-12-12 08:36:54 +00:00
},
"plantuml":
{
2019-08-03 13:21:40 +00:00
"server": "https://www.plantuml.com/plantuml"
2019-10-21 20:10:06 +00:00
},
"linkifyHeaderStyle": "gfm"
2016-10-05 02:58:05 +00:00
}
}