-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.js
97 lines (87 loc) · 1.5 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
module.exports = {
//! Process
name: 'MEAN Stack',
config: '/opt/mean/config.js',
//! Docker
docker: {
socketPath: process.platform === 'win32' ? '//./pipe/docker_engine' : '/var/run/docker.sock'
},
//! HTTP
http: {
bind: '::',
hostname: '127.0.0.1',
port: {
internal: 58011,
external: 58012,
dev: 58013
}
},
//! HTTPS
https: {
bind: '::',
hostname: '127.0.0.1',
port: {
internal: 58021,
external: 58022,
dev: 58023
},
ssl: {
key: 'https.key',
cert: 'https.cert'
}
},
//! Database
database: {
path: '/opt/mean/data',
auth: {
username: 'mean',
password: 'm3an',
database: 'mean'
},
ssl: {
enabled: true,
key: 'mongo.key',
cert: 'mongo.cert',
pem: 'mongo.pem',
ca: '',
validate: false
},
standalone: {
hostname: '172.17.0.1',
port: 58031
},
repl: {
enabled: false,
name: 'rs0',
read: 'nearest',
key: 'repl.key',
nodes: []
}
},
//! Logs
logs: {
path: '/opt/mean/logs',
format: ':remote-addr :remote-user :method :url HTTP/:http-version :status :res[content-length] :referrer :user-agent'
},
//! Certs
certs: {
path: '/opt/mean/certs'
},
//! Client Libraries
libs: [],
//! Typescript Types
types: {
server: [ 'async', 'body-parser', 'compression', 'express', 'helmet', 'moment', 'mongoose', 'morgan', 'winston' ],
client: [ 'jquery' ]
},
//! Test Plans
tests: {
server: {
v1: [ 'api/v1/**/*' ],
users: [ 'api/v1/users/**/*' ]
},
client: {
client: [ '**/*' ]
}
}
}