Commit 2925763acb998d621fd5695592b8ed64b4d1b973
1 parent
050d92ffb6
Exists in
master
and in
1 other branch
trust proxy
Showing 2 changed files with 7 additions and 0 deletions Side-by-side Diff
config.sample.json
lib/partner-listener/index.js
... | ... | @@ -14,6 +14,10 @@ const routerTrxStatus = require('./routers/trx-status'); |
14 | 14 | |
15 | 15 | const app = express(); |
16 | 16 | |
17 | +if (config.partner && config.partner.trust_proxy) { | |
18 | + app.set('trust proxy', config.partner.trust_proxy); | |
19 | +} | |
20 | + | |
17 | 21 | app.use(express.json({ extended: true })); |
18 | 22 | app.use(express.urlencoded({ extended: true })); |
19 | 23 | app.use(middlewareCommon); |