-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.js
More file actions
37 lines (22 loc) · 999 Bytes
/
config.js
File metadata and controls
37 lines (22 loc) · 999 Bytes
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
require('dotenv').config()
var config = {
//for public hosted, create CA directory for source IP
caIPDir: process.env.CAIPDIR || false,
hosted: process.env.HOSTED || false,
httpport: process.env.HTTPPORT || 8080,
httpsport: process.env.HTTPSPORT || 8443,
//will enable ocsp and aia
publichttp: process.env.PUBLICHTTP || false,
opensearchhost: process.env.OPENSEARCHHOST || false,
opensearchport: process.env.OPENSEARCHPORT || false,
sscepapihost: process.env.SSCEPAPIHOST || 'node-sscep',
sscepapiport: process.env.SSCEPAPIPORT || 3000,
opensslbinpath: process.env.OPENSSLBINPATH || 'openssl'
//opensslbinpath: process.env.OPENSSLBINPATH || 'openssl'
//opensslbinpath: 'C:/Program Files/OpenVPN/bin/openssl.exe'
}
module.exports = config;
//minimal windows example
//SET OPENSSLBINPATH=C:\Program Files\OpenVPN\bin\openssl.exe&&SET PUBLICHTTP=192.168.164.110:8080&& node index.js
//minimal Linux example
//export HTTPPORT=9080&&export HTTPSPORT=9443&&node index.js