Jump to content

Reverse Proxy Settings for nginx


Recommended Posts

Hi just wanted to post my settings for reverse proxy DVBViewer rec. service in the case anyone needs it (nginx and rec service different machines)

 

Run "RSTweaker.bat" inside the DVBViewer instalation folder.

Set "reverse proxy ip" to the reverse proxy ip ex: 192.168.1.1

Set "reverse proxy url" to the domain you have ex: www.example.com

 

Nginx reverse proxy sample config (this is just specific for DVBViewer other rules you should search for a proper tutorial on reverse proxy):

 

location / {

proxy_pass http://IpOfRecServiceMachine:Port;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
add_header X-Frame-Options "SAMEORIGIN";
}

 

Three things I want to point out:

  • add_header X-Frame-Options "SAMEORIGIN"; <- Is a security risk
  • You have to foward the "Live Stream Server" port in your router from the RecServiceMachine to the wan (Would be nice if this could share the webGui port).
  • I couldnt get "mydomain.com/something" to work on the reverse proxy returns a page with the words "template not ready"
Edited by DunnoX
Link to comment
  • 3 months later...
×
×
  • Create New...