Skip to content

Commit

Permalink
chore: Limite usage of s3 and auth endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Dec 1, 2023
1 parent 245ae04 commit 1a8b759
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ export default defineNuxtConfig({

routeRules: {
'/api/s3/query/**': { isr: true },
'/api/s3/mutation/**': {
security: {
xssValidator: false
}
}
'/api/s3/mutation/**': { security: { xssValidator: false } },
'/api/s3/**': { security: { rateLimiter: { tokensPerInterval: 10, interval: 30000 } } },
'/api/auth/**': { security: { rateLimiter: { tokensPerInterval: 15, interval: 30000 } } }
}
})

0 comments on commit 1a8b759

Please sign in to comment.