2013-04-22 14:16:24 -04:00
|
|
|
var config = {
|
2013-05-04 13:11:27 -04:00
|
|
|
// The "secret" is used to encrypt cookie sessions, change this to any random string
|
2013-05-01 16:27:57 -04:00
|
|
|
"secret": 'nodebb-secret',
|
2013-05-04 13:11:27 -04:00
|
|
|
|
|
|
|
|
// "base_url" is expected to be a publically accessible URL to your NodeBB instance (Default base_url: 'http://localhost', port: '4567')
|
2013-04-23 16:51:39 -04:00
|
|
|
"base_url": "http://localhost",
|
2013-05-13 13:30:33 -04:00
|
|
|
|
|
|
|
|
// public url for uploaded files
|
|
|
|
|
"upload_url": "http://dev.domain.com/uploads/",
|
|
|
|
|
|
|
|
|
|
// relative path for uploads
|
|
|
|
|
"upload_path": "/uploads/",
|
|
|
|
|
|
2013-05-10 23:57:49 -04:00
|
|
|
"use_port": true,
|
2013-04-22 14:37:13 -04:00
|
|
|
"port": 4567,
|
2013-05-04 13:11:27 -04:00
|
|
|
|
|
|
|
|
// The host and port to the SMTP server used by NodeBB. The "from" value must be changed.
|
2013-04-22 14:37:13 -04:00
|
|
|
"mailer": {
|
|
|
|
|
host: 'localhost',
|
|
|
|
|
port: '25',
|
2013-04-23 16:44:31 -04:00
|
|
|
from: 'mailer@localhost.lan'
|
2013-05-01 12:54:04 -04:00
|
|
|
},
|
2013-05-04 13:11:27 -04:00
|
|
|
|
|
|
|
|
// Connection details to the redis database instance.
|
2013-05-01 12:54:04 -04:00
|
|
|
"redis": {
|
|
|
|
|
port: "6379",
|
|
|
|
|
host: "127.0.0.1",
|
|
|
|
|
options: {
|
|
|
|
|
|
|
|
|
|
}
|
2013-05-02 11:11:10 -04:00
|
|
|
},
|
2013-05-04 13:11:27 -04:00
|
|
|
|
|
|
|
|
// Social Networking integration. Add the appropriate API keys to activate
|
|
|
|
|
// login via alternate method, otherwise the option will not be presented
|
|
|
|
|
// to the user
|
2013-05-02 11:11:10 -04:00
|
|
|
"twitter": {
|
|
|
|
|
"key": '',
|
|
|
|
|
"secret": ''
|
2013-05-02 12:45:22 -04:00
|
|
|
},
|
|
|
|
|
"google": {
|
|
|
|
|
"id": '',
|
|
|
|
|
"secret": ''
|
2013-05-02 15:57:43 -04:00
|
|
|
},
|
|
|
|
|
"facebook": {
|
|
|
|
|
"app_id": '',
|
|
|
|
|
"secret": ''
|
2013-05-06 21:15:53 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Privileged Actions Reputation Thresholds
|
|
|
|
|
"privilege_thresholds": {
|
2013-05-10 23:57:49 -04:00
|
|
|
"manage_thread": 1000,
|
|
|
|
|
"manage_content": 2000
|
2013-04-22 14:37:13 -04:00
|
|
|
}
|
2013-04-22 14:16:24 -04:00
|
|
|
}
|
|
|
|
|
|
2013-05-10 23:57:49 -04:00
|
|
|
config.url = config.base_url + (config.use_port ? ':' + config.port : '') + '/';
|
2013-04-23 16:51:39 -04:00
|
|
|
|
2013-04-22 14:16:24 -04:00
|
|
|
module.exports = config;
|