nginx-reverse-proxy
nginx-reverse-proxy copied to clipboard
Add support for HTTPS upstream, make sure to pass the upstream Host header
This PR adds:
- Support for HTTPS upstream URLs, e.g. when reverse proxying a Cloudflare worker or some other site that is only accessible through HTTPS
- Pass the upstream hostname in the
Hostheader - so the upstream server doesn't need to support the additional reverse proxy hostname