cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide
Apache License 2.0
8.79k stars 775 forks source link

💡 Forward original http Host header to local service #1036

Open SystemZ opened 1 year ago

SystemZ commented 1 year ago

Describe the feature you'd like Forward original Host header to local service. It would allow a simple one rule catching of all hostnames and forwarding it to local proxy service which have all nitty gritty details configured that would be hard to do in cloudflared.

Describe alternatives you've considered For massive deployments with many zones generating and maintaining big config file for cloudflared. It includes a lot of duplicate entries with httpHostHeader same name as hostnames it catches. It's very cumbersome.

Additional context Related issue which implemented overwriting Host header but it doesn't allow to forward original one yet: https://github.com/cloudflare/cloudflared/issues/111

jult commented 1 year ago

Yep, I would very much like to see this implemented as well. Same issues arise with cloudflared tunnels (as reverse proxies to localhost devices and such). They show up as blank pages or the like..