-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.cjs
37 lines (36 loc) · 890 Bytes
/
config.cjs
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
const config = {
dynamodb: {
applicantsTable: {
name: "WebAuthnApplicantsTable",
partitionKey: { name: "applicantId" },
timeToLiveAttribute: "ttl",
},
credentialsTable: {
name: "WebAuthnCredentialsTable",
partitionKey: { name: "credentialId" },
gsi: { name: "userIdIndex", partitionKey: { name: "userId" } },
},
},
lambda: {
name: "WebAuthnLambdaFunction",
},
apiGateway: {
name: "WebAuthnApiGateway",
description: "WebAuthn Service API",
cors: { allowHeaders: ["X-Api-Key"] },
},
apiKey: {
name: "WebAuthnApiKey",
description: "API Key for WebAuthn Service",
},
usagePlan: {
name: "WebAuthnUsagePlan",
description: "Standard usage plan for WebAuthn Service",
throttle: {
rateLimit: 10,
burstLimit: 30,
},
quota: { limit: 1000 },
},
};
module.exports = config;