DunnoX Posted July 21, 2016 Share Posted July 21, 2016 (edited) 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 July 21, 2016 by DunnoX Link to comment
FitzGerald Posted October 21, 2016 Share Posted October 21, 2016 Hi,i just got the reverse proxy to work with a sub path with the following config: location /dvb/ { rewrite /dvb/(.*) /$1 break; proxy_pass http://127.0.0.1:8089; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } Link to comment
Recommended Posts