mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Fix runner api rate limit bypass
This commit is contained in:
parent
923e41fa4f
commit
e915cde30e
26 changed files with 122 additions and 31 deletions
|
@ -2,6 +2,7 @@ import express from 'express'
|
|||
import { auditLoggerFactory, getAuditIdFromRes, VideoChannelSyncAuditView } from '@server/helpers/audit-logger'
|
||||
import { logger } from '@server/helpers/logger'
|
||||
import {
|
||||
apiRateLimiter,
|
||||
asyncMiddleware,
|
||||
asyncRetryTransactionMiddleware,
|
||||
authenticate,
|
||||
|
@ -17,6 +18,8 @@ import { HttpStatusCode, VideoChannelSyncState } from '@shared/models'
|
|||
const videoChannelSyncRouter = express.Router()
|
||||
const auditLogger = auditLoggerFactory('channel-syncs')
|
||||
|
||||
videoChannelSyncRouter.use(apiRateLimiter)
|
||||
|
||||
videoChannelSyncRouter.post('/',
|
||||
authenticate,
|
||||
ensureSyncIsEnabled,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue