-
Notifications
You must be signed in to change notification settings - Fork 51
/
scm-config.json
83 lines (83 loc) · 2.59 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
73
74
75
76
77
78
79
80
81
82
83
// 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": "node_modules/component-web",
"pre-config": [{
"set-port": 8888
}],
"post-config": [{
"set-redirect": {
"destProtocol": "https",
"destPort": 8443,
"destTemporary": false
}
}]
}, {
"name": "https",
"type": "generic",
"package": "node_modules/component-web",
"pre-config": [{
"set-port": 8443,
"set-https": true,
"set-domain": "localhost",
"set-body-parser": "json",
"set-enable-session": true
}, { // demo UI for WebAuthn
"add-static": {
"path": "/",
"dir": "webauthn-yubiclone"
}
}, { // serve up swagger UI
"add-static": {
"path": "/swagger",
"dir": "fido2-swagger"
}
}]
}, {
"name": "cert-manager",
"type": "generic",
"package": "node_modules/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": "node_modules/component-fido2",
"pre-config": [{
"enable-dangerous-open-registration": true,
"enable-dangerous-xmit-debug-info": true,
"set-service-name": "WebAuthn.org"
}]
}, {
"name": "uds",
"type": "generic",
"package": "node_modules/component-uds-json"
}, {
"name": "logger",
"type": "logger",
"package": "node_modules/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"
}]
}]
}]
}