Skip to content

Commit

Permalink
fix(core-api): trustProxy option based on env
Browse files Browse the repository at this point in the history
  • Loading branch information
air1one committed Dec 11, 2020
1 parent 4c79c45 commit fff3ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-api/src/defaults.ts
Expand Up @@ -34,7 +34,7 @@ export const defaults = {
userCache: {
expiresIn: process.env.CORE_API_RATE_LIMIT_USER_EXPIRES || 60000,
},
trustProxy: true,
trustProxy: !!process.env.CORE_API_TRUST_PROXY,
},
pagination: {
limit: 100,
Expand Down

0 comments on commit fff3ecb

Please sign in to comment.