-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathweb.example.js
More file actions
31 lines (23 loc) · 1013 Bytes
/
web.example.js
File metadata and controls
31 lines (23 loc) · 1013 Bytes
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
/*
* Netention Web Server Example
*
* Edit this to configure and customize your servers.
*/
require('./server/web.js').start(
'SITE_URL' /* include :port if necessary */,
8080,
'localhost/netention_db_0',
function(netention) {
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!');
}
);