linuxserver / docker-plex

GNU General Public License v3.0
1.18k stars 208 forks source link

Feature request: disable Plex relay #218

Closed burkasaurusrex closed 4 years ago

burkasaurusrex commented 4 years ago

Thanks for the hard work on this! I really like this container.

I think it would be a useful feature to have an environment variable to disable Plex relay. I think there are a a variety of ways to do this:

Whatever method would probably have to be done at every update unfortunately...

aptalca commented 4 years ago

It should be a request for the upstream so you can do it within the Plex gui. For us to do such a thing would be very hacky.

In the meantime, see here for how to make sure it's done automatically at every container start: https://blog.linuxserver.io/2019/09/14/customizing-our-containers/

burkasaurusrex commented 4 years ago

oh nice! I didn't realize lsio containers had this functionality. Do you happen to know if custom-cont-init.d scripts would run before or after updating Plex?

aptalca commented 4 years ago

After. Those are the last to run

burkasaurusrex commented 4 years ago

Great. For posterity, I ended up dropped this script into /config/custom-cont-init.d:

#!/usr/bin/env bash
chmod 600 "/usr/lib/plexmediaserver/Plex Relay"

I felt like it was the least disruptive while also accomplishing the goal. May or may not need to restart Plex after chmod - I'll investigate.

aptalca commented 4 years ago

Plex starts after the init file, so you shouldn't need to

19wolf commented 4 years ago

This is now upstream, and can be done in the Plex gui