caddy-l4 icon indicating copy to clipboard operation
caddy-l4 copied to clipboard

Is it possible to use caddy's modules inside L4 routes?

Open stronny opened this issue 1 year ago • 12 comments

I'm prepared to try my hand at implementing it, but I want to ask first. Basically, I need caddy's reverse_proxy inside L4's route as a handler. This is because I want to pass mTLS fields upwards, and I use tls handler to terminate TLS inside L4, so caddy's http server doesn't see the certificate anymore and I can't think of an easy way to pass them along akin to PROXY protocol. This would also eliminate the need to listen on a separate port to loop a request back from L4 to http, but that's not the main point.

Any thoughts?

stronny avatar Jul 24 '24 16:07 stronny