Project

General

Profile

Nginx debian https proxy

Added by Tony Hughes almost 5 years ago

Hey Guys,

Have had a look around and found a tutorial on exposing my tvheadend via nginx https https://github.com/tvheadend/tvheadend/blob/master/docs/markdown/faqs.md#q-access-tvheadend-through-http-proxy

Have tried the following

within the Tvheadend Args =
TVH_ARGS="--http_root /tv -f"

and nginx block
}
location tv{
proxy_pass http://192.168.1.111:9981;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

I can access my local install using 192.168.1.111:9981/tv fine and it's all good. But via https 502 Bad Gateway any ideas? basically looking at this if i ever want and am away from home can watch local tv etc.