danthegoodman1 / Gildra

Mutli-tenant TLS terminating proxy for L7 traffic. Supports unlimited domains and certs with HTTP/1.1, 2, and 3. Manages ACME HTTP challenges magically. Sits in your infrastructure.
Other
5 stars 0 forks source link

Add `x-forwarded-to` header #14

Closed danthegoodman1 closed 11 months ago

danthegoodman1 commented 1 year ago

The x-forwarded-to header will be the destination that the routing config said to forward it to. This can either be an IP or domain.

This is useful for when you have something like a tenant ID in a subdomain like {tenant}.internal-dash.domain.com, and can easily pull the tenant ID out of the subdomain instead of doing a reverse domain name lookup of the host header, which might be something like tenant-domain.com.

danthegoodman1 commented 11 months ago

This will include the protocol and path, as otherwise the host header has all the info needed