Skip to content

Commit

Permalink
feat: ASAP-416 Add throttling configuration to public API (#4275)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstarling authored May 15, 2024
1 parent 0fdfa07 commit 022e55d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/gp2-server/serverless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,18 @@ const serverlessConfig: AWS = {
],
},
},
HttpApiStage: {
Type: 'AWS::ApiGatewayV2::Stage',
DependsOn: ['HttpApiRouteGetPublicProxyVar'],
Properties: {
RouteSettings: {
'GET /public/{proxy+}': {
ThrottlingBurstLimit: 30,
ThrottlingRateLimit: 100,
},
},
},
},
FrontendBucket: {
Type: 'AWS::S3::Bucket',
DeletionPolicy: 'Delete',
Expand Down

0 comments on commit 022e55d

Please sign in to comment.