mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 14:22:07 +03:00
7284227f1e
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 |
||
---|---|---|
.. | ||
api | ||
image | ||
validation | ||
admin-redirects.js | ||
brute.js | ||
cache-control.js | ||
custom-redirects.js | ||
emit-events.js | ||
error-handler.js | ||
ghost-locals.js | ||
index.js | ||
labs.js | ||
log-request.js | ||
maintenance.js | ||
pretty-urls.js | ||
request-id.js | ||
serve-favicon.js | ||
serve-public-file.js | ||
static-theme.js | ||
uncapitalise.js | ||
update-user-last-seen.js | ||
upload.js | ||
url-redirects.js |