0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/test
Kevin Ansfield 7284227f1e
🐛 Fixed 404s when using a proxy setup (#11269)
no issue

When using certain proxy setups that result in `host` and `x-forwarded-host` being different, it became impossible to access Ghost because all routes showed generic 404 pages.

- `vhost` module that we are using to separate front-end and admin urls does not use express' `req.hostname` so it does not pick up the `x-forwarded-host` url that express' `'trust proxy'` config gives us
- switched to the forked `@tryghost/vhost-middleware` package which has a one-line change to use `req.hostname || req.host`
- added `'trust proxy'` config to the admin express app and switched to using `req.hostname` in our redirect code to avoid infinite redirect loops
2019-10-28 11:22:05 +00:00
..
acceptance Fixed tests 2019-10-11 13:16:54 +01:00
regression 🐛 Fixed incorrect body class output on page (#11264) 2019-10-23 18:06:45 +02:00
unit 🐛 Fixed 404s when using a proxy setup (#11269) 2019-10-28 11:22:05 +00:00
utils Fixed test suite timeout for multi-author posts 2019-10-14 16:11:10 +02:00
.eslintignore Moved grunt-eslint to npm script executing eslint (#10474) 2019-02-11 13:26:06 +01:00
.eslintrc.json Updated eslint for tests to allow async functions 2019-10-06 21:03:56 +07:00
.jshintrc