forked from linnovate/mean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.js
81 lines (80 loc) · 1.97 KB
/
production.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
'use strict';
module.exports = {
db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/mean-prod',
/**
* Database options that will be passed directly to mongoose.connect
* Below are some examples.
* See http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html#mongoclient-connect-options
* and http://mongoosejs.com/docs/connections.html for more information
*/
dbOptions: {
/*
server: {
socketOptions: {
keepAlive: 1
},
poolSize: 5
},
replset: {
rs_name: 'myReplicaSet',
poolSize: 5
},
db: {
w: 1,
numberOfRetries: 2
}
*/
},
hostname: 'http://localhost:3000',
app: {
name: 'MEAN - A Modern Stack - Production'
},
logging: {
format: 'combined'
},
strategies: {
local: {
enabled: true
},
landingPage: '/',
facebook: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/api/auth/facebook/callback',
enabled: false
},
twitter: {
clientID: 'CONSUMER_KEY',
clientSecret: 'CONSUMER_SECRET',
callbackURL: 'http://localhost:3000/api/auth/twitter/callback',
enabled: false
},
github: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/api/auth/github/callback',
enabled: false
},
google: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/api/auth/google/callback',
enabled: false
},
linkedin: {
clientID: 'API_KEY',
clientSecret: 'SECRET_KEY',
callbackURL: 'http://localhost:3000/api/auth/linkedin/callback',
enabled: false
}
},
emailFrom: 'SENDER EMAIL ADDRESS', // sender address like ABC <[email protected]>
mailer: {
service: 'SERVICE_PROVIDER',
auth: {
user: 'EMAIL_ID',
pass: 'PASSWORD'
}
},
secret: 'SOME_TOKEN_SECRET'
};