-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.config.js
More file actions
33 lines (31 loc) · 897 Bytes
/
example.config.js
File metadata and controls
33 lines (31 loc) · 897 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
32
33
var path = require('path')
var xtend = require('xtend')
var config = {
shared: {
host: 'http://127.0.0.1',
port: 3322,
secret: 'this is not very secret',
dbpath: path.join(__dirname, 'db'),
publicRegistration: true,
allowedEmails: [], // only used if publicRegistration is false
scopes: {
app: {
admin: 'app:admin'
},
datasets: {
read: 'datasets:read',
write: 'datasets:write',
destroy: 'datasets:destroy'
}
},
emailTransport: `smtps://${process.env.GMAIL_USER}%40gmail.com:${process.env.GMAIL_PASS}@smtp.gmail.com`,
fromEmail: 'hi@editdata.org',
clientHost: 'http://127.0.0.1:9966'
},
production: {
secret: process.env.EDITDATA_SECRET,
clientHost: 'https://new.editdata.org'
}
}
var env = process.env.NODE_ENV || 'development'
module.exports = xtend(config.shared, config[env])