Project

General

Profile

nginx reverse proxy and nginxconfig.io configuration, finally working

Added by Victor TW almost 2 years ago

Hello,

I was struggling getting tvheadend to work behind nginx proxy_pass. Dispite following the instructions (https://github.com/tvheadend/tvheadend/blob/master/docs/markdown/faqs.md#q-access-tvheadend-through-http-proxy), all I got was a blank page.

Finally realised that this prevented it from working:
location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ {
expires 7d;
access_log off;
}

I do not understand why, but with it active I can not access the webui. Commenting it out, it seem to work flawlessly.

Just sharing if someone else are having similar problems.