Skip to content

Commit

Permalink
Add uploadBlob rate limit (#2052)
Browse files Browse the repository at this point in the history
uploadBlob ratelimit
  • Loading branch information
dholms authored Jan 18, 2024
1 parent a7000f2 commit b906c0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/pds/src/api/com/atproto/repo/uploadBlob.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'
import { DAY } from '@atproto/common'

export default function (server: Server, ctx: AppContext) {
server.com.atproto.repo.uploadBlob({
auth: ctx.authVerifier.accessCheckTakedown,
rateLimit: {
durationMs: DAY,
points: 1000,
},
handler: async ({ auth, input }) => {
const requester = auth.credentials.did

Expand Down

0 comments on commit b906c0c

Please sign in to comment.