-
Notifications
You must be signed in to change notification settings - Fork 4
/
sample-db.cfg
63 lines (59 loc) · 1.82 KB
/
sample-db.cfg
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
var dbConfig = {
// define users that can login and whether they have admin capability
// you don't have to have any authorized users if you don't need them
// currently admin users do not have any extra privileges but might in
// the furture.
auth: {
user1: {
password: 'secret1',
admin: false
},
user2: {
password: 'secret2',
admin: false
},
admin: {
password: 'admin-secret;',
admin: true
}
},
// whether any user or only logged in users can send feedback
requireLoginForFeedback: false,
// whether or not you are using photo management extension with this database
hasPhotos: false,
// examples of configuring email for this database
mailer: {
// sample config for gmail
gmail: {
service: 'Gmail',
host: 'smtp.gmail.com',
port: 465,
auth: {
user: '[email protected]',
pass: 'gmail-secret'
},
// debug: true,
tls: {
rejectUnauthorized: false
}
},
// sample config for mailgun
// you may need to edit routes/feedbackpost.js to configure it
// to use mailgun
mailgun: {
auth: {
api_key: 'mailgun-api-key',
//domain: 'mg.example.com'
domain: 'sandbox-mailgun_sandbox_key.mailgun.org'
}
},
// envelope for mail being send
options: {
from: '[email protected]',
to: '[email protected]',
subject: 'Feedback on "mygedcom" genealogy database',
text: 'nothing here, it will get filled out by feedback form'
}
}
};
module.exports = dbConfig;