jkirkcaldy / plex-utills

Manage your Plex library automatically
MIT License
319 stars 24 forks source link

Allow use of local url (mainly for docker usage) #97

Closed JigSawFr closed 2 years ago

JigSawFr commented 2 years ago

Hi there, In config, we are unable to use url of type: http://plex:32400 for Plex for eg. (same logic for Tautulli) In a docker environment we can reach container in the same network without the need to go on internet :) So flows remain local, if you can accept these values, it could be great, Thanks !

JigSawFr commented 2 years ago

It can work atm by editing directly the DB with something like this:

UPDATE plex_utills SET plexurl = REPLACE(plexurl,'http://plex.url','http://plex:32400');
UPDATE plex_utills SET tautulli_server = REPLACE(tautulli_server,'https://tautulli.url','http://tautulli:8181');

But not future proof :)

jkirkcaldy commented 2 years ago

if you use a local IP address it stays local and doesn't go via the internet. I use a url and because I have a local DNS server that resolves it it doesn't go out over the internet either.

JigSawFr commented 2 years ago

Yeah but that's not what I aim, internal IP can change as container are auto created on new version available. So only possibility is to us docker dns name of container

Anon0511 commented 2 years ago

Basically, this just works fine. No need for the workaround in the database. The address is containerName.networkName i.E http://tautulli.plex:8181/ Although it would be nice if the container Name alone could work.

jkirkcaldy commented 2 years ago

This is fixed in the latest :dev container

http://container:port should now work