[Solved] Lighttpd as a proxy to Tvheandend
Added by pld over 4 years ago
I'm trying to use Lighttod as a proxy to Tveadend (to encrypt traffic using https). This is my proxy config:
$SERVER["socket"] == "0.0.0.0:443" { ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/server.pem" $HTTP["url"] =~ "^/comet/ws" { setenv.add-request-header = ( "Connection" => "Upgrade") setenv.add-response-header = ( "Connection" => "Upgrade") proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9981" ) ) ) proxy.header = ( "upgrade" => "enable") } proxy.server = ( "" => ( "internal" => ( "host" => "127.0.0.1", "port" => "9981" ) ) ) }
Unfortunatelly Lighttpd tries to download the content to server.upload-dirs first and then to send it to client. As a consequence I'm able to watch pre-recorded movies. Watching live tv is impossible since we are dealing with infinite stream. So my question is how to make Lighttp forward the data without storing it locally or at least limit the pre-loaded size.
Thanks in advance for any help
Replies (4)
RE: Lighttpd as a proxy to Tvheandend - Added by gstrauss over 4 years ago
Please try making a miniscule effort to read the available lighttpd documentation for configuration options, and then ask a more specific question if you are still confused.
RE: Lighttpd as a proxy to Tvheandend - Added by pld over 4 years ago
Id did waste several hours (today and yesterday) on ggogling and tests. I did try:
server.stat-cache-engine = "disable'
server.network-backend = "writev"
server.max-request-size = 4096
and mode_cache settings.
Still no luck.
So I would really appreciate any help.
RE: Lighttpd as a proxy to Tvheandend - Added by gstrauss over 4 years ago
Watching live tv is impossible since we are dealing with infinite stream
Try searching for the word "stream" in lighttpd config options (and ignore mod_flv_streaming)
RE: Lighttpd as a proxy to Tvheandend - Added by pld over 4 years ago
Thanks a lot!
server.stream-response-body = 2
did the job. I try to write a kind of a small how-to later.
Thanks again!