Skip to content

Commit

Permalink
fix(core-api): respect CORE_API_RATE_LIMIT_DISABLED env variable (#3855)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainydio authored Jun 30, 2020
1 parent 1a81aee commit c7d8242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-api/src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const defaults = {
checkperiod: 120,
},
rateLimit: {
enabled: !process.env.CORE_API_RATE_LIMIT,
enabled: !process.env.CORE_API_RATE_LIMIT_DISABLED,
points: process.env.CORE_API_RATE_LIMIT_USER_LIMIT || 300,
duration: process.env.CORE_API_RATE_LIMIT_USER_EXPIRES || 60000,
whitelist: process.env.CORE_API_RATE_LIMIT_WHITELIST
Expand Down

0 comments on commit c7d8242

Please sign in to comment.