import rateLimit from '@fastify/rate-limit'

export const autoConfig = {
  max: 3,
  timeWindow: '1 minute',
  allowList: ['127.0.0.1']
}

/**
 * This plugin adds rate limiting to protect against brute force attacks
 *
 * @see {@link https://github.com/fastify/fastify-rate-limit}
 */
export default rateLimit 