Kodi Community Forum
Recomended nginx config for reverse proxy chorus2 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Web Interfaces (https://forum.kodi.tv/forumdisplay.php?fid=156)
+----- Forum: Chorus 2 (https://forum.kodi.tv/forumdisplay.php?fid=268)
+----- Thread: Recomended nginx config for reverse proxy chorus2 (/showthread.php?tid=296265)



Recomended nginx config for reverse proxy chorus2 - lozbrown85 - 2016-11-08

Hi

I would like to reverse proxy chorus2 us out via reverse proxy with Nginx

I already have several applications working in this manner but my normal configuration for this didn't work for kodi

Can anyone share there working nginx config for proxying the kodi web ui


RE: Recomended nginx config for reverse proxy chorus2 - lozbrown85 - 2016-11-12

I've made some amount of progress on this on my own but I'm somewhat stuck with the vfs stuff

The following is sort of close however the references to vfs files come out wrong so streaming and downloading do not work.

This does however get the majority of the navigation working

Code:
location /kodi {
                rewrite           ^/kodi$      https://home.example.com/kodi/ permanent;
                rewrite           ^/kodi/(.*)  /$1  break;
                proxy_redirect  http://localhost:5555   /kodi/;
                proxy_set_header Host $http_host;
                proxy_redirect off;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Scheme $scheme;
                proxy_pass http://localhost:5555;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
       }

        location /image
            {
                proxy_pass          http://localhost:5555;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
            }

         location /vfs
            {
                proxy_pass          http://localhost:5555;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
            }

        location /jsonrpc
            {
                proxy_pass          http://localhost:5555;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
            }



RE: Recomended nginx config for reverse proxy chorus2 - mrm1st3r - 2017-02-04

Any more progress on getting streaming/downloading to work through a https connection?


RE: Recomended nginx config for reverse proxy chorus2 - jez500 - 2017-02-05

Placing this here to link things together: https://github.com/xbmc/chorus2/issues/133


RE: Recomended nginx config for reverse proxy chorus2 - Klouse - 2017-06-20

Hello,

i made a new comment in the github-thread, because i can't get the websocket to work.

Has somebody got it to work?

Thanks!

Regards,

Klaus