-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
30 lines (25 loc) · 811 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
var config = {
development: {
MAIL_USR: 'mail_user'
, MAIL_PASS: 'mail_pass"'
, DB_URL: 'localhost:27017/inventarioWeb'
, CONFIRM_ACCOUNT_LINK: ''// 'http://sim.malaniz.com.ar/confirm/email' //URL Comun
, CHANGE_PASSWORD_LINK: ''// 'http://localhost:8081/public/app/#/changepassword' //URL Comun
, WS_URL: 'http://192.168.1.202/Proveedor03/SimetricaWS.asmx?wsdl' //URL Comun
, APP_PORT: process.env.PORT || 8085
},
production: {
MAIL_USR: 'mail_user'
, MAIL_PASS: 'mail_pass"'
, DB_URL: 'ip:port/db'
, CONFIRM_ACCOUNT_LINK: ''
, CHANGE_PASSWORD_LINK: '/#/changepassword'
, WS_URL: ''
, APP_PORT: process.env.PORT || 80
}
}
function init(app){
var mode = app.get('env');
return config[mode];
}
exports.init = init;