Add rate limit to registration and API endpoints
This commit is contained in:
parent
fd0bfc3ac4
commit
c1340a6ac3
9 changed files with 112 additions and 23 deletions
|
@ -27,9 +27,9 @@ const app = express()
|
|||
import { checkMissedConfig, checkFFmpeg } from './server/initializers/checker-before-init'
|
||||
|
||||
// Do not use barrels because we don't want to load all modules here (we need to initialize database first)
|
||||
import { logger } from './server/helpers/logger'
|
||||
import { API_VERSION, FILES_CACHE, WEBSERVER, loadLanguages } from './server/initializers/constants'
|
||||
import { CONFIG } from './server/initializers/config'
|
||||
import { API_VERSION, FILES_CACHE, WEBSERVER, loadLanguages } from './server/initializers/constants'
|
||||
import { logger } from './server/helpers/logger'
|
||||
|
||||
const missed = checkMissedConfig()
|
||||
if (missed.length !== 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue