-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscm-config.json
72 lines (72 loc) · 2.14 KB
/
scm-config.json
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
// scm-config
//
// this is a JSON file that allows JavaScript-style comments
{
// setuid and setgid are only required if running with sudo
// you can delete these lines and run without sudo if your http/https ports don't require special privledges
// "setuid": 1,
// "setgid": 1,
"components": [{
"name": "http",
"type": "generic",
"package": "component-web",
"pre-config": [{
"set-port": 8888
}],
"post-config": [{
"set-redirect": {
"destProtocol": "https",
"destPort": 8443,
"destTemporary": false
}
}]
}, {
"name": "https",
"type": "generic",
"package": "component-web",
"pre-config": [{
"set-port": 8443,
"set-https": true,
"set-domain": "localhost",
"set-body-parser": "json",
"set-enable-session": true,
"add-static": {
"path": "/",
"dir": "webauthn-yubiclone"
}
}]
}, {
"name": "cert-manager",
"type": "generic",
"package": "component-certs-static",
"pre-config": [{
"set-cert-file": "data/node_modules/component-certs-static/test/helpers/certs/cert.pem",
"set-key-file": "data/node_modules/component-certs-static/test/helpers/certs/key.pem"
}]
}, {
"name": "fido2",
"type": "generic",
"package": "component-fido2"
}, {
"name": "uds",
"type": "generic",
"package": "component-uds-json"
}, {
"name": "logger",
"type": "logger",
"package": "component-logger-winston",
"pre-config": [{
"set-level": "silly",
"add-transport": [{
// log to the screen...
"type": "console",
"colorize": true
}, {
// ...and log to a file
// see winston's npm page for more transport configuration options
"type": "file",
"filename": "scm.log"
}]
}]
}]
}