Server Version#: 1.28.0.5999
Player Version#:
Whenever I go to (https://)watch.mydomain(.)com/, my connection appears as unsecure remote. I understand that Docker essentially NATs the connections through it’s own network but I have been able to see WAN and LAN IPs how they should be expected. I can’t figure out what has happened for this to stop working.
All connections appear as the Docker network (found by running ‘docker network inspect root_default’). It started in the 172.x.x.x range and I assume from so many restarts, it is now in the 192.168.64.x/20. My local network is 192.168.45.0/24.
I have a VPS that I Reverse SSH tunnel to avoid opening ports:
ssh -fN -R 80:localhost:80 -R 443:localhost:443 mydomain(.)com
I am using Caddy as the reverse proxy and here is the config:
#Plex reverse proxy
watch.mydomain(.)com {
reverse_proxy localmachine(.)lan:32400
}
...
This is my compose file:
services:
caddy:
image: caddy:latest
container_name: caddy
restart: always
environment:
- PUID=1000
- PGID=1000
- UMASK=002
ports:
- "80:80"
- "443:443"
volumes:
- ./configs/caddy/config:/config
- ./configs/caddy/data:/data
- ./configs/caddy:/etc/caddy
plex:
image: hotio/plex:latest
container_name: plex
restart: always
ports:
- "32400:32400"
environment:
- PUID=1000
- PGID=1000
- UMASK=002
environment:
PLEX_CLAIM: #(https://)plex(.)tv/claim
ADVERTISE_IP: (http://)localmachine(.)lan:32400,(https://)watch.mydomain(.)com:443
ALLOWED_NETWORKS: 192.168.45.0/24,10.189.78.0/24
volumes:
- ./configs/plex:/config
- /mnt/data/media/movies:/media/movies
- /mnt/data/media/tv:/media/tv
...
The Custom Server Access URLs in Plex are:
http://localmachine(.)lan:32400,https://watch.mydomain(.)com:443
I have flopped back and forth changing from http and https in the Access URLs and occasionally I am able to get a secure local connection if I connect by (https://)localmachine(.)lan:32400/ however, this is not consistent and I have trouble reproducing.
I can’t think of anything else to try and have already blown out my server and restarted a new one and tried a new distro without anything different happening. I have tried using network_mode: host and got the same results.