mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02:00
fix: enable trust-proxy
This commit is contained in:
parent
cd25078792
commit
c65f7c27ee
@ -20,7 +20,7 @@ module.exports = function(config) {
|
|||||||
|
|
||||||
const baseUriPath = config.baseUriPath || '';
|
const baseUriPath = config.baseUriPath || '';
|
||||||
|
|
||||||
app.set('trust proxy');
|
app.set('trust proxy', true);
|
||||||
app.disable('x-powered-by');
|
app.disable('x-powered-by');
|
||||||
app.set('port', config.port);
|
app.set('port', config.port);
|
||||||
app.locals.baseUriPath = baseUriPath;
|
app.locals.baseUriPath = baseUriPath;
|
||||||
|
Loading…
Reference in New Issue
Block a user