2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/core/server
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
..
adapters 🏗 Migrated scheduler to work with v2 API (#11142) 2019-09-23 21:42:53 +05:30
api Fixed reading_time calculation for non public posts 2019-10-21 18:07:38 +07:00
config Removed subscribers from the codebase (#11153) 2019-10-09 11:47:04 +02:00
data 🐛 Fixed migration path from pre 2.28.x to 3.0.0 (#11268) 2019-10-28 12:02:16 +01:00
lib Merge branch 'master' into v3 2019-10-11 11:31:31 +01:00
models Updated webhook default to v3 api 2019-10-14 15:50:24 +07:00
public Updated default publication icon 2019-10-17 07:59:21 +02:00
services Refined member emails 2019-10-16 14:22:42 +07:00
translations Removed subscribers from the codebase (#11153) 2019-10-09 11:47:04 +02:00
views Update default 404 page 2019-07-15 14:47:01 +02:00
web 🐛 Fixed 404s when using a proxy setup (#11269) 2019-10-28 11:22:05 +00:00
analytics-events.js Added event to integrations when created (#10588) 2019-03-11 15:28:17 +01:00
ghost-server.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
index.js 🏗 Migrated scheduler to work with v2 API (#11142) 2019-09-23 21:42:53 +05:30
overrides.js Disabled bluebird debug logs 2018-08-13 14:01:31 +02:00
update-check.js Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00