forked from automenta/netjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.js.EXAMPLE
164 lines (133 loc) · 3.59 KB
/
options.js.EXAMPLE
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
exports.options = {
"id": null,
"name": "Netention",
"description": "http://netention.org",
"memoryUpdateIntervalMS": 10 * 60 * 1000 /* 10 minutes */,
web: {
"host": "localhost",
"port": "8080",
"connection": "websocket", //'websocket' or 'static'
"httpCompress": false,
"webrtc": true, //webrtc server
"password": "" //HTTP simple authentication; leave blank to deactivate
},
/*
//E-mail verification needs an e-mail account to mail from
"email": {
service: 'Gmail',
auth: {
user: '___@gmail.com',
pass: ''
}
},
*/
//LevelUp/LevelDown
// status: working
db: {
type: 'levelup'
},
/*
//LevelUp/MemDown - in-memory storage (activity is not saved)
// status: working
db: null,
*/
/*
//PouchDB - runs on LevelUp but adds revisions and other CouchDB features
// status: working
db: {
type: 'pouch',
//optional pouchdb web server (w/ Fauxton management GUI)
"web": {
port: 8081
},
},
*/
/*
//redis - doesnt work yet
db: {
type: 'levelup',
backend: 'redisdown',
require: 'redis' //hiredis is native binding to redis
},
*/
/*
//rocksdb
db: {
type: 'levelup',
backend: 'level-rocksdb'
},
*/
//lmdb
// status: working
/*
db: {
type: 'levelup',
backend: 'lmdb'
//https://github.com/rvagg/lmdb#options
},
*/
"plugins": {
},
//admin=0, authenticated=1, anonymous=2, unauthenticated(public)=3
"permissions": {
"view_public_object": 2,
"create_object": 2,
"delete_own_object": 2,
"delete_anything": 0,
"connect": 2, //3 == allow public use, 2 == require login (even if anonymous)
"enableAnonymous": true,
"authenticate_to_configure_plugins": false,
"authenticate_to_create_objects": false,
"authenticate_to_delete_objects": false,
"authenticate_to_proxy_http": false,
"authenticate_to_create_profiles": false,
"anyone_to_enable_or_disable_plugin": true,
},
"client": {
"autoLoginDefaultProfile": true, //should always be true
"webrtc": true,
"initialView": "wall",
"avatarMenuDisplayInitially": true,
"focusEditDisplayStartup": true,
"favicon": null,
"loginLogo": "/theme/login-logo.png",
"defaultAvatarIcon": "/theme/default-avatar.jpg",
"wikiStartPage": "Life",
"showPlanOnSelfPage": true,
"defaultTheme": "_bootswatch.cerulean",
"maxStartupObjects": 8192,
"defaultMapMode2D": true,
"mapDefaultLocation": [40.44, -80.0],
"ontologySearchIntervalMS": 1500,
"viewlockDefault": false,
"viewUpdateTime": [
/* mobile: [ min update interval (ms), debounce time (ms), 1st view debounce time (ms) ] */
[150, 50, 250],
/* desktop: [ min update interval (ms), debounce time (ms) ], 1st view debounce time (ms) */
[0, 0, 100]
],
"views": [
"us",
"map",
"browse",
"wiki",
"graph",
"share",
//"templates",
"forum",
"main",
"trends",
"time",
"notebook",
"wall",
"slides"
],
"newUserProperties": ["walletRipple"],
"shareTags": ['Offer', 'Sell', 'Lend', 'Rent', 'Swap', 'GiveAway', 'Need'],
"shareCategories": ['Food', 'Service', 'Volunteer', 'Shelter', 'Tools', 'Health', 'Transport', 'Animal'],
"knowTags": ['Learn', 'Teach', 'Do'],
"defaultScope": 7
},
start: function($N) {
}
}