Improved-Plex-Mobile icon indicating copy to clipboard operation
Improved-Plex-Mobile copied to clipboard

Added nginx reverse proxy docker container

Open bgizdov opened this issue 5 years ago • 3 comments

bgizdov avatar May 13 '20 13:05 bgizdov

Correct me if I'm wrong, but I don't believe 172.17.0.1 is a universal IP for plex dockers?

Archmonger avatar May 14 '20 06:05 Archmonger

It is the default Docker gateway IP. For example if plex docker container use --net=host, it works. I haven't tested it in other cases. It is best to use docker.host.internal instead, but it doesn't work on linux. Anyway there are workarounds on this.

bgizdov avatar May 14 '20 16:05 bgizdov

Just a quick status update...

Unfortunately have not had time to confirm whether this docker works. However, I do have a few thoughts off of looking at the Nginx configuration.

server_name myplexserver.com; will need to be removed to make this docker universally applicable. Additionally, within the Nginx config this proxy pass will need to be set as the default server like such

  server_name _;
  listen *:80 default_server;

To make this docker more flexible some optional variables will need to be added. Off the top of my head: Nginx Proxy Port, Plex IP, and Plex Port.

I've never made a docker file before, so if left up to me I'll need to look in to how variables are done.

Archmonger avatar Jul 11 '20 10:07 Archmonger