-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.js
39 lines (34 loc) · 909 Bytes
/
config.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
var mongojs = require('mongojs');
var path = require('path');
var env = process.env.NODE_ENV !== 'production';
if(env){
//dev
var db = mongojs('mvp', ['users','suscriptions']);
db.users=db.collection('users');
db.suscriptions=db.collection('suscriptions');
}else{
//production
var db = mongojs('mvp', ['users','suscriptions']);
db.users=db.collection('users');
db.suscriptions=db.collection('suscriptions');
}
module.exports = {
db: db,
env: env,
sessionSecret: "changeme",
projectName: "MVP",
emailData: {
templatesPath: path.join(__dirname, 'views/emails'),
from: "MVP <[email protected]>",
replyTo: "MVP <[email protected]>",
proyectName: "MVP",
contactEmail: "MVP <[email protected]>"
},
localLoginEnabled: true,
registerEnabled: true,
registerConfirmation: true,
facebookLoginEnabled: false,
FACEBOOK_APP_ID : "",
FACEBOOK_APP_SECRET: "",
FACEBOOK_CALLBACK_DOMAIN: ""
};