/
config.js
128 lines (123 loc) · 3.25 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/**
* config.js
*
* package: nk-xrm
* version: 0.1.6
*/
var path = require( 'path' ),
config;
config =
{
// Development configuration
development:
{
url: 'http://dev.mmogp.com',
forceAdminSSL: true,
mail:
{
fromaddress: 'noreply@mmogp.com',
transport: 'SMTP',
options:
{
service: 'Gmail',
auth:
{
user: 'test@gmail.com',
pass: 'password'
}
}
},
admin:
{ // Yes, the admin application is a separate application from the main application.
root: 'adm',
controller_path: __dirname + '/adm/controllers',
model_path: __dirname + '/adm/models',
view_path: __dirname + '/adm/views',
asset_path: __dirname + '/adm/assets'
},
app:
{
root: 'app',
controller_path: __dirname + '/app/controllers',
model_path: __dirname + '/app/models',
view_path: __dirname + '/app/views',
asset_path: __dirname + '/assets'
},
database:
{
client: 'mysql',
host: 'localhost',
port: '3306',
db: 'mmdev',
user: 'mmdadm',
password: '^DevPass777$',
debug: true
},
server:
{
host: '0.0.0.0',
port:
{
app: '7719',
admin: '7717'
}
}
},
// Production configuration
production:
{
url: 'http://mmogp.com',
forceAdminSSL: true,
mail:
{
fromaddress: 'noreply@mmogp.com',
transport: 'SMTP',
options:
{
service: 'Gmail',
auth:
{
user: 'test@gmail.com',
pass: 'password'
}
}
},
admin:
{ // Yes, the admin application is a separate application from the main application.
root: 'adm',
controller_path: __dirname + '/adm/controllers',
model_path: __dirname + '/adm/models',
view_path: __dirname + '/adm/views',
asset_path: __dirname + '/adm/assets'
},
app:
{
root: 'app',
controller_path: __dirname + '/app/controllers',
model_path: __dirname + '/app/models',
view_path: __dirname + '/app/views',
asset_path: __dirname + '/assets'
},
database:
{
client: 'mysql',
host: 'localhost',
port: '3306',
db: 'mmpro',
user: 'mmpadm',
password: '^ProPass777$', // Passwords should be strong like so, but this is obviously a bad one to use...
debug: false
},
server:
{
host: '0.0.0.0',
port:
{
app: '7720',
admin: '7718'
}
}
},
};
// Use module.exports so that we have the direct context of the exported object, regardless of type.
module.exports = exports = config;