codimd/config.json.example

111 lines
3.7 KiB
Plaintext
Raw Normal View History

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",
"storage": ":memory:"
2016-12-24 14:04:18 +00:00
}
2016-12-22 14:03:04 +00:00
},
2016-10-05 02:58:05 +00:00
"development": {
"hsts": {
"enable": false
},
2016-10-05 02:58:05 +00:00
"db": {
"dialect": "sqlite",
"storage": "./db.hackmd.sqlite"
2016-10-05 02:58:05 +00:00
}
},
"production": {
"domain": "localhost",
"hsts": {
"enable": true,
"maxAgeSeconds": "31536000",
"includeSubdomains": true,
"preload": true
},
csp: {
"enable": true,
"directives": {
},
"upgradeInsecureRequests": "auto"
"addDefaults": true
},
2016-10-05 02:58:05 +00:00
"db": {
"username": "",
"password": "",
"database": "hackmd",
"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",
"clientSecret": "change this",
"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')"
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",
"clientSecret": "change this",
"appKey": "change this"
2016-10-05 02:58:05 +00:00
},
"google": {
"clientID": "change this",
"clientSecret": "change this",
"apiKey": "change this"
2016-10-05 02:58:05 +00:00
},
"ldap": {
"url": "ldap://change_this",
"bindDn": null,
"bindCredentials": null,
"tokenSecret": "change this",
"searchBase": "change this",
"searchFilter": "change this",
"searchAttributes": ["change this"],
2018-01-09 08:45:32 +00:00
"usernameField": "change this e.g. uid",
"tlsOptions": {
"changeme": "See https://nodejs.org/api/tls.html#tls_tls_connect_options_callback"
}
},
"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')",
"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"
},
"s3": {
"accessKeyId": "change this",
"secretAccessKey": "change this",
"region": "change this"
},
"s3bucket": "change this"
2016-10-05 02:58:05 +00:00
}
}