diff --git a/app.js b/app.js index e2eb586..9dd37b6 100644 --- a/app.js +++ b/app.js @@ -5,7 +5,7 @@ const path = require('path'); const yargs = require('yargs/yargs'); const fastify = require('fastify')({ - logger: true, maxParamLength: 999, ignoreTrailingSlash: false, trustProxy: true, + logger: true, maxParamLength: 999, ignoreTrailingSlash: false, trustProxy: App.Args.xhost, rewriteUrl: function (req) { let url = req.url; let host = App.Args.xhost ? req.headers['x-forwarded-host'] : req.headers['host'];