mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
express: document the effect of settings.trustProxy
This commit is contained in:
parent
5503ebdb94
commit
cd28643604
1 changed files with 6 additions and 0 deletions
|
@ -100,6 +100,12 @@ exports.restartServer = function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (settings.trustProxy) {
|
if (settings.trustProxy) {
|
||||||
|
/*
|
||||||
|
* If 'trust proxy' === true, the client’s IP address in req.ip will be the
|
||||||
|
* left-most entry in the X-Forwarded-* header.
|
||||||
|
*
|
||||||
|
* Source: https://expressjs.com/en/guide/behind-proxies.html
|
||||||
|
*/
|
||||||
app.enable('trust proxy');
|
app.enable('trust proxy');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue