Commit Graph

2 Commits

Author SHA1 Message Date
Kevin Ansfield
a0b74b289a Added express 'trust proxy' support
no issue

- extracted from https://github.com/expressjs/vhost/pull/21
- uses `req.hostname` if it's available. `req.hostname` is set to the `x-forwarded-host` value when `'trust proxy'` setting is enabled in express
2019-10-24 15:11:08 +01:00
Kevin Ansfield
3e6a713658 Forked expressjs/vhost to vhost-middleware
no issue

Direct copy of current master from https://github.com/expressjs/vhost/ with automatic eslint fixes to match our styleguide.

Forked because we need a reverse proxy fix and the original module appears abandoned.
2019-10-24 14:53:06 +01:00