-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
90 lines (75 loc) · 3.1 KB
/
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
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
82
83
84
85
86
87
88
89
90
/**
* BusinessObjects - Objetos suportados pela aplicação
* 20/02/16
*/
module.exports = {
info: {
application: {
title: 'Dreams App Server',
desc: 'Server de aplicações Dreams'
}
},
run:{
port: 3000
},
security:{
active: true,
token: 'b778b0aad2ceda1b1577a77ba1f295e14fce706b33d17469cf477194f76a633a'
},
// Conexão à repositório de dados
conexao:{
tipo: 'mysql',
conn: {
database: 'dreams',
user: 'root',
password: 'desenv123'
}
},
// Server push
pushserver: {
url: "localhost",
port: "8000",
ios: {
cert: "cert/dev/cert.pem",
key: "cert/dev/key.pem",
pass: "Dr3@m$#T3@m",
}
},
email: {
user : "",
password : "",
host : "smtp.????.com.br",
port : "587",
dreams : "[email protected]",
ssl : false
},
// Mapa de APIs dinâmicas
apiMap: {
// Login
'login' : {mod: 'users/users', provider: 'login'},
'forgotpwd' : {mod: 'users/users', exec: 'forgotPwd'},
// Usuários
'users' : {mod: 'users/users', provider: 'default'},
'profile' : {mod: 'users/users', provider: 'profile'},
'follow' : {mod: 'users/user_follow', provider: 'default'},
'followall' : {mod: 'users/user_follow', provider: 'default'},
'followers' : {mod: 'users/user_followers', provider: 'default'},
// Sonhos
'dreams' : {mod: 'dreams/dreams', provider: 'default'},
'mydreams' : {mod: 'dreams/dreams', provider: 'mydreams'},
'feedall' : {mod: 'dreams/dreams', provider: 'feedall'},
'feedfollowing' : {mod: 'dreams/dreams', provider: 'feedfollowing'},
'dreamtoo' : {mod: 'users/users_dreams_rel', provider: 'default'},
'tocometrue' : {mod: 'dreams/dreams', provider: 'tocometrue'},
'comingtrue' : {mod: 'dreams/dreams', provider: 'comingtrue'},
'cametrue' : {mod: 'dreams/dreams', provider: 'cametrue'},
'albuns' : {mod: 'dreams/dream_albuns', provider: 'default'},
'albumcomments' : {mod: 'comments/comments_albuns_rel', provider: 'default'},
'albumlikes' : {mod: 'users/users_like_albuns_rel', provider: 'default'},
'dreamcomments' : {mod: 'comments/comments_dreams_rel', provider: 'default'},
'dreamlikes' : {mod: 'users/users_like_dreams_rel', provider: 'default'},
'denuncy' : {mod: 'denuncy/denuncy', provider: 'default'},
'dreamdenuncy' : {mod: 'denuncy/denuncy_dreams_rel', provider: 'default'},
'albumdenuncy' : {mod: 'denuncy/denuncy_albuns_rel', provider: 'default'}
}
};