diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-04 16:42:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-04 16:42:40 +0200 |
commit | c1340a6ac35f924161e6ec2a1d728e20c89e55c8 (patch) | |
tree | 8f0a6b72b36be586422002039720d3a08309cbea /server.ts | |
parent | fd0bfc3ac43eb0c0c2ac0b21bc2e0670f546384f (diff) | |
download | PeerTube-c1340a6ac35f924161e6ec2a1d728e20c89e55c8.tar.gz PeerTube-c1340a6ac35f924161e6ec2a1d728e20c89e55c8.tar.zst PeerTube-c1340a6ac35f924161e6ec2a1d728e20c89e55c8.zip |
Add rate limit to registration and API endpoints
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,9 +27,9 @@ const app = express() | |||
27 | import { checkMissedConfig, checkFFmpeg } from './server/initializers/checker-before-init' | 27 | import { checkMissedConfig, checkFFmpeg } from './server/initializers/checker-before-init' |
28 | 28 | ||
29 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) | 29 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) |
30 | import { logger } from './server/helpers/logger' | ||
31 | import { API_VERSION, FILES_CACHE, WEBSERVER, loadLanguages } from './server/initializers/constants' | ||
32 | import { CONFIG } from './server/initializers/config' | 30 | import { CONFIG } from './server/initializers/config' |
31 | import { API_VERSION, FILES_CACHE, WEBSERVER, loadLanguages } from './server/initializers/constants' | ||
32 | import { logger } from './server/helpers/logger' | ||
33 | 33 | ||
34 | const missed = checkMissedConfig() | 34 | const missed = checkMissedConfig() |
35 | if (missed.length !== 0) { | 35 | if (missed.length !== 0) { |