Hi
I’ve successfully installed nginx as reverse proxy and cloudflare
I can access to my domain over 443 port and redirect it to 32400 port.
When I access to my domain I can play movies with no issue When I access to my server by mobile app it returns an bandwidth limit message because the indirect access.
I use reverse proxy because I dont know how to change plex port
Is it possible hide plex back to reverse proxy ?
here is the nginx configuration
server {
rewrite https://$host$request_uri? permanent;
error_log /var/log/nginx/plex_error.log error;
access_log /var/log/nginx/plex_access.log combined;
server_tokens off;
#ssl on;
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/key.pem;
#Resolver set to CloudFlare
resolver 1.1.1.1 1.0.0.1 valid=300s;
resolver_timeout 10s;
gzip on;
gzip_vary on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
gzip_disable "MSIE [1-6]\.";
location / {
# IP address of Plex Media Server
proxy_pass https://127.0.0.1:32400/;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_cookie_path /web/ /;
access_log off;
}
It says" Not avilable outside your network" but I verified reverse proxy for example with python http server and it works
it Is mandatory open these ports ?
The following additional ports are also used within the local network for different services:
UDP: 1900 (access to the Plex DLNA Server)
UDP: 5353 (older Bonjour/Avahi network discovery)
TCP: 8324 (controlling Plex for Roku via Plex Companion)
UDP: 32410, 32412, 32413, 32414 (current GDM network discovery)
TCP: 32469 (access to the Plex DLNA Server)
Thank you





