forked from Connoropolous/netentionjs2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
web.example.js
38 lines (26 loc) · 1.21 KB
/
web.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Netention Web Server Example
*
* Edit this to configure and customize your servers.
*/
require('./server/web.js').start(
'SITE_URL',
8080, //port to run the server on
'localhost/netention_db_0', //mongodb database url: "host/db"
{
httpCompress: false,
init: function(netention) {
/* called after server started */
netention.configFile = 'client.js';
netention.permissions['authenticate_to_configure_plugins'] = false;
netention.permissions['authenticate_to_create_objects'] = false;
netention.permissions['authenticate_to_delete_objects'] = false;
netention.permissions['authenticate_to_proxy_http'] = false;
netention.permissions['authenticate_to_create_profiles'] = false;
netention.permissions['anyone_to_enable_or_disable_plugin'] = true; //false to disallow anyone from modifying plugins
//netention.permissions['twitter_key'] = 'CONSUMER_KEY:CONSUMER_SECRET';
//Plugins to auto-enable
netention.enablePlugins = [ /* 'earthquake', 'rss' */ ];
netention.nlog('READY!');
}
});