Improved-Plex-Mobile
Improved-Plex-Mobile copied to clipboard
Added nginx reverse proxy docker container
Correct me if I'm wrong, but I don't believe 172.17.0.1 is a universal IP for plex dockers?
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.
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.