-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathscm-config-webauthn.json
84 lines (84 loc) · 2.64 KB
/
scm-config-webauthn.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
84
// scm-config for webauthn.org
//
// 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": 1000,
"setgid": 1000,
"components": [{
"name": "http",
"type": "generic",
"package": "component-web",
"pre-config": [{
// setting the port isn't technically required here, but is included for convenience
"set-port": 80
}],
"post-config": [{
"set-redirect": {
"destProtocol": "https",
"destTemporary": false
}
}]
}, {
"name": "https",
"type": "generic",
"package": "component-web",
"pre-config": [{
// setting the port isn't technically required here, but is included for convenience
"set-port": 443,
"set-https": true,
"set-domain": "webauthn.org",
"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": "component-certs-static",
"pre-config": [{
"set-cert-file": "/etc/letsencrypt/live/webauthn.org/cert.pem",
"set-key-file": "/etc/letsencrypt/live/webauthn.org/privkey.pem"
}]
}, {
"name": "fido2",
"type": "generic",
"package": "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": "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"
}]
}]
}]
}