2016-10-05 10:58:05 +08:00
{
2016-12-22 22:03:04 +08:00
"test": {
2016-12-24 22:04:18 +08:00
"db": {
"dialect": "sqlite",
2017-02-04 13:31:37 +08:00
"storage": ":memory:"
2016-12-24 22:04:18 +08:00
}
2016-12-22 22:03:04 +08:00
},
2016-10-05 10:58:05 +08:00
"development": {
2017-10-13 01:09:04 +02:00
"hsts": {
"enable": false
},
2016-10-05 10:58:05 +08:00
"db": {
2017-02-04 13:31:37 +08:00
"dialect": "sqlite",
"storage": "./db.hackmd.sqlite"
2016-10-05 10:58:05 +08:00
}
},
"production": {
"domain": "localhost",
2017-10-13 01:09:04 +02:00
"hsts": {
2017-10-22 01:22:48 +02:00
"enable": true,
2017-10-13 01:09:04 +02:00
"maxAgeSeconds": "31536000",
2017-10-22 01:22:48 +02:00
"includeSubdomains": true,
"preload": true
2017-10-13 01:09:04 +02:00
},
2017-10-20 12:31:16 +02:00
csp: {
2017-10-22 01:22:48 +02:00
"enable": true,
2017-10-20 12:31:16 +02:00
"directives": {
},
"upgradeInsecureRequests": "auto"
2017-10-22 01:22:48 +02:00
"addDefaults": true
2017-10-20 12:31:16 +02:00
},
2016-10-05 10:58:05 +08: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",
2017-03-14 18:04:23 +08:00
"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 10:58:05 +08:00
},
"dropbox": {
"clientID": "change this",
2017-01-14 14:17:20 +08:00
"clientSecret": "change this",
"appKey": "change this"
2016-10-05 10:58:05 +08:00
},
"google": {
"clientID": "change this",
2017-01-14 14:17:20 +08:00
"clientSecret": "change this",
"apiKey": "change this"
2016-10-05 10:58:05 +08:00
},
2016-12-13 22:31:35 +01:00
"ldap": {
"url": "ldap://change_this",
"bindDn": null,
"bindCredentials": null,
"tokenSecret": "change this",
"searchBase": "change this",
"searchFilter": "change this",
"searchAttributes": "change this",
"tlsOptions": {
"changeme": "See https://nodejs.org/api/tls.html#tls_tls_connect_options_callback"
}
},
2016-10-05 10:58:05 +08:00
"imgur": {
"clientID": "change this"
}
}
}