Solved TVHeadend Docker Web UI using https and reverse proxy

Currently reading
Solved TVHeadend Docker Web UI using https and reverse proxy

10
8
NAS
DS918+
Operating system
  1. Windows
Mobile operating system
  1. Android
Hi

I'm going through all my running containers and putting them behind synology's reverse proxy and SSL but I've not managed to do it for TVHeadedend. The Web UI (port 9981) runs fine using the local IP 192.168.2.20:9981 but when I put this behind a reverse proxy it fails to load.

Anyone else been able to do it?

Thanks
 
133
34
NAS
DS918+, DS1815+
Operating system
  1. Linux
  2. macOS
Mobile operating system
  1. Android
What is the error that you get or can you make a screenshot and post it here?
 

Shadow

Subscriber
606
206
NAS
DS216+II, DS118, DS718+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. Android
Are you using the correct protocol in the reverse proxy settings?
 
10
8
NAS
DS918+
Operating system
  1. Windows
Mobile operating system
  1. Android
Hi

localhost:9981 and ExternalIP:9981 work absolutely fine (after port forwarding 9981 & 9982) but the reverse proxy doesn't (see screenshot, I enter my login details but the WebUI doesn't fully load). I'm guessing that it's something to do with the rule being only for 9981 and 9982 has to be open too but not sure how to resolve it

Capture.JPG


Capture2.JPG
 
10
8
NAS
DS918+
Operating system
  1. Windows
Mobile operating system
  1. Android
Are you using the correct protocol in the reverse proxy settings?
Yeah, it's the same whether I use http or https and all my other dockers are absolutely fine.
 
10
8
NAS
DS918+
Operating system
  1. Windows
Mobile operating system
  1. Android
Hi

No, I've left all my containers as they are (http) and only set SSL through reverse proxy so the destination for all is just the internal http address and port. I think the issue is with 9982 which is the HTSP port but i don't know what to do about it
 
Some web applications won't work behind a reverse proxy without a fight ;)

Can you turn on the developer tools (usual enabled with the F12 key) of your browser and check the analyse network tab for errors?
 
10
8
NAS
DS918+
Operating system
  1. Windows
Mobile operating system
  1. Android
Thanks for the reply, not sure what I'm looking at here but it's the error in the console
1586280838738.png
 
That's what I thought. There is a "Custom Header" tab in the reverse proxy configuration. Try to create the "Websocket" headers and try again. If WebSocket communication still fails with this additional setting, you will need to create a custom nginx configuration for this service.
 
10
8
NAS
DS918+
Operating system
  1. Windows
Mobile operating system
  1. Android
That's what I thought. There is a "Custom Header" tab in the reverse proxy configuration. Try to create the "Websocket" headers and try again. If WebSocket communication still fails with this additional setting, you will need to create a custom nginx configuration for this service.
You're a genius, doing what you said sorted my issue out. Here's a screenshot for anyone else who has the problem.

Thanks
1586333004411.png
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Similar threads

Similar threads

Top