-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.js
30 lines (28 loc) · 845 Bytes
/
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
var rc = require("rc");
var defaults = {
vault: {
server: {
"address": process.env.VAULT_ADDR || "http://localhost:8200",
"ca-cert": process.env.VAULT_CACERT || undefined,
"ca-path": process.env.VAULT_CAPATH || undefined,
"tls-skip-verify": process.env.VAULT_SKIP_VERIFY || false,
"api-version": "v1"
}, pki: {
"path": "pki",
"role": ""
},
"token": process.env.VAULT_TOKEN || "",
"token-renewable": false
},
certCN: require("os").hostname(),
certAltNames: [],
certIPs: [],
certTTL: undefined,
certFile: "client.pem",
keyFile: "client.key",
caFile: undefined,
onUpdate: undefined,
renewalCoefficient: 0.9,
once: false
};
module.exports = rc("vault-pki-client", defaults);