Open vitoyucepi opened 2 days ago
Thanks! Do you mean that you would like liquidsoap to be able to act as a proxy?
liquidsoap to be able to act as a proxy?
I'd like to put it behind haproxy, nginx, or another reverse proxy server that will terminate the encryption but still preserve the external IP address.
Description
I'd like to see support for the proxy protocol in liquidsoap for various inputs and harbors. It preserves client IP when working behind the reverse proxy. It's possible to use the http headers
x-forwarded-for
andx-real-ip
for HTTP, but for TCP streams, like Icy, it's never been an option.Preferable solution
Add an option to switch the port into proxy mode.
Alternative solutions
No response
Additional context
I don't know the origin of the proxy protocol, but it seems the haproxy developed it.
The promotional post in the haproxy blog about it is available here: https://www.haproxy.com/blog/use-the-proxy-protocol-to-preserve-a-clients-ip-address. The specification can be found here: https://github.com/haproxy/haproxy/blob/master/doc/proxy-protocol.txt.