-
Notifications
You must be signed in to change notification settings - Fork 7
/
options.example.js
115 lines (103 loc) · 3.42 KB
/
options.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
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
module.exports = {
main: {
port:3333,
public:'/public'
},
listen: {
port: 10101
},
admin: {
email: '[email protected]',
name: 'admin',
password: 'a1'
},
auth: {
// change to true if you want to send emails
sendemail:true,
// change to true if user is NOT allowed to sign in before confirming their email
confirm: false,
email:{
subject:{
register:'Welcome!',
create_reset:'Password Reset'
},
content:{
resetlinkprefix:'http://localhost:3333/reset',
confirmlinkprefix:'http://localhost:3333/confirm'
}
},
user: {
updatefields: ['name','email','image']
},
ldap:{
enabled: false,
// LDAP_URL environment variable overrides the url setting if it is set
url: 'ldap://localhost:389',
base: 'ou=people,dc=ec2,dc=internal',
filter: '(&(ObjectClass=person)(uid=%s))'
}
},
features: {
// signup and account features will be disabled if LDAP is enabled (regardless of their settings here)
signup: true,
account: true,
gravatar: true
},
// DB_URL environment variable overrides these settings if it is set
mysql: {
name:'douitsu',
host:'localhost',
user:'douitsu',
password:'douitsu',
port:3306
},
// CACHE_URL environment variable overrides these settings if it is set
redis: {
host:'localhost',
port:6379
},
mail: {
mail: {from:'[email protected]'},
config:{
host: 'localhost'
}
},
// Set a different theme for a different look and feel
theme: {
style: '/css/theme/sphere/theme.css',
logo: '/css/theme/sphere/logo.png',
locale: {
namespace: 'sphere'
},
page: {
account: 'theme/sphere/account',
applications: 'theme/sphere/applications',
index: 'theme/sphere/index',
dialog: 'theme/sphere/dialog'
}
},
settings: {
spec: {
a:{'type':'text', 'nice':'A', 'help':'Example of text.'},
b:{'type':'email', 'nice':'B', 'help':'Example of email.'},
c:{'type':'tel', 'nice':'C', 'help':'Example of tel.'},
d:{'type':'number', 'nice':'D', 'help':'Example of number.'},
e:{'type':'time', 'nice':'E', 'help':'Example of time.'},
f:{'type':'date', 'nice':'F', 'help':'Example of date.'},
g:{'type':'datetime', 'nice':'G', 'help':'Example of datetime.'},
h:{'type':'color', 'nice':'H', 'help':'Example of color.'},
i:{'type':'url', 'nice':'I', 'help':'Example of url.'},
j:{'type':'checkbox', 'nice':'J', 'help':'Example of checkbox.'},
k:{'type':'range', 'nice':'K', 'help':'Example of range.', 'default' : 50},
l:{'type':'rating', 'nice':'L', 'help':'Example of rating.', 'stars' : 6 },
ll:{'type':'rating', 'nice':'LL', 'help':'Example of rating.'},
m:{'type':'yesno', 'nice':'M', 'help':'Example of yesno.'},
n:{'type':'onoff', 'nice':'N', 'help':'Example of onoff slider.', 'default' : 0},
o:{'type':'buttons', 'nice':'O', 'help':'Example of buttons.', 'options' : ['foo', 'bar', 'baz']},
p:{'type':'dropdown', 'nice':'P', 'help':'Example of dropdown.', 'options' : ['foo', 'bar', 'baz']},
q:{'type':'dropdownplus', 'nice':'Q', 'help':'Example of dropdownplus.', 'options' : ['foo', 'bar', 'baz']},
r:{'type':'longtext', 'nice':'R', 'help':'Example of longtext.'},
s:{'type':'radio', 'nice':'S', 'help':'Example of radio.', 'options' : ['foo', 'bar', 'baz']},
}
}
};