Middling 3 Posted November 13, 2015 Share Posted November 13, 2015 (edited) I've been attempting to setup Emby behind a reverse proxy (nginx) and have encountered a few problems with the Kodi plugin (my nginx setup works fine using a web browser). A serious problem that breaks support for some reverse proxy setups is that the plugin is inconsistent in how it attempts to access the server. For example: Accessing user data uses the path /mediabrowser/Users Accessing show data uses /Shows Accessing the API key uses /?api_key This inconsistency means that you're required to proxy the root directory of the web site to the root directory of the emby server in order for things to work. Having the plugin use a consistent relative path: /emby/Users /emby/Shows /emby/?api_key etc would allow for proper reverse proxying of subdirectories (without breaking existing setups that proxy the root directory) instead of dedicating the whole web site just to emby. Relevant snippet of my nginx.conf for proxying the emby subdirectory: location /emby/ { proxy_pass http://emby.wired.lan.example.org:8096/emby/; 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-Proto $scheme; proxy_set_header X-Forwarded-By $server_addr:$server_port; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } Edited November 13, 2015 by Middling Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted November 14, 2015 Share Posted November 14, 2015 (edited) @@Luke Is it safe to go ahead and convert our urls to {server}/emby/ instead of {server}/mediabrowser/, etc? Everyone should have it available on their server at this point, yes? Edit: I will convert the paths to emby in future beta version. Edited November 14, 2015 by Angelblue05 Link to comment Share on other sites More sharing options...
Middling 3 Posted November 14, 2015 Author Share Posted November 14, 2015 Instead of hardcoding it to /emby/ perhaps it would be better as a new option in Advanced settings, but defaulting to /emby/? That way anyone stuck on an old version of the server they can't upgrade for some reason could edit it to /mediabrowser/ if they need to. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted November 14, 2015 Share Posted November 14, 2015 It's fine. I will convert to /emby. I will let you know once it's done. It will take me a bit, however as I have other things to work on at the moment. Link to comment Share on other sites More sharing options...
Recommended Posts