Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dacoffey committed Mar 23, 2021
1 parent ae4ba65 commit 19cf093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 19cf093

Please sign in to comment.