-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
103 lines (91 loc) · 1.69 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
module.exports = {
//! Process
name: 'meen',
config: '/opt/mean/config.js',
//! HTTP
http: {
hostname: '::',
url: '127.0.0.1',
port: {
internal: '8080',
external: '80'
}
},
//! HTTPS
https: {
hostname: '::',
url: '127.0.0.1',
port: {
internal: '4434',
external: '443'
},
ssl: {
key: 'https.key',
cert: 'https.cert'
}
},
//! Database
database: {
path: '/opt/mean/data',
auth: {
username: 'mean',
password: 'm3an',
database: 'mean'
},
ssl: {
enabled: true,
key: 'mongodb.key',
cert: 'mongodb.cert',
pem: 'mongodb.pem',
ca: '',
validate: false
},
repl: {
name: 'rs0',
read: 'nearest',
key: 'repl.key',
nodes: [{
hostname: '192.168.0.25',
port: 27017
}]
}
},
//! Client Libraries
libs: [
//Semantic UI
'semantic/dist/semantic.min.css',
'semantic/dist/*/**/*',
'!semantic/dist/components/**/*'
],
//! Typescript Types
types: {
server: [ 'async', 'body-parser', 'compression', 'express', 'helmet', 'moment', 'mongoose', 'morgan', 'webpack', 'webpack-env', 'winston' ],
client: [ 'webpack', 'webpack-env', 'jquery' ]
},
//! Server Test Plans
tests: {
v1: [ '/api/v1/**/' ],
users: [ '/api/v1/users/**/' ]
},
//! API Documentation
docs: {
v1: [ '/api/v1/**/*.md' ],
users: [ '/api/v1/users/**/*.md' ]
},
//! Certificates
certs: {
path: '/opt/mean/certs',
details: {
hostname: '192.168.0.22',
organisation: 'Vmlweb Ltd',
country: 'GB',
state: 'Kent',
city: 'London'
}
},
//! Logs
logs: {
path: '/opt/mean/logs',
format: ':remote-addr :remote-user :method :url HTTP/:http-version :status :res[content-length] :referrer :user-agent'
}
}