forked from mmod/nk-mvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
89 lines (85 loc) · 1.94 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
/**
* config.js
*
* package: nk-mvc
* version: 0.0.1-alpha
*/
var path = require('path'),
config;
config =
{
// Development configuration
development:
{
url: 'http://localhost:7724',
forceAdminSSL: true,
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: 'nkdev',
user: 'devadm',
password: '^DevPass777$',
debug: true
},
server:
{
host: '0.0.0.0',
port: '7724'
}
},
// Production configuration
production:
{
url: 'http://localhost:7724',
forceAdminSSL: true,
mail:
{
fromaddress: 'noreply@mmogp.com',
transport: 'SMTP',
options:
{
service: 'Gmail',
auth:
{
user: 'test@gmail.com',
pass: 'password'
}
}
},
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: 'nkpro',
user: 'proadm',
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: '7724'
}
},
};
// Use module.exports so that we have the direct context of the exported object, regardless of type.
module.exports = exports = config;