If Plex login breaks only after the reverse proxy restarts, prove direct local Plex access first; a working direct session moves the fault to the proxy, DNS, or TLS path.
The fastest mistake is to reset Plex credentials when the server itself is still healthy. Reverse proxies add an upstream address, hostname, certificate, request headers, and sometimes a Docker network between the browser and Plex. Test those layers in order. The recovery target is not merely getting the login page back once; it is making the same proxy route survive a controlled proxy restart without changing the Plex server identity.
Prove whether Plex itself is still reachable
Open Plex directly on the LAN using the server address and port you normally use for local management. If the same account signs in and the server loads, leave Plex authentication and server data alone. You have already isolated the problem to the path added by the proxy.
Plex exposes custom server access URLs for unusual networking configurations such as reverse proxies and VPNs. If the URL Plex publishes no longer matches the hostname or scheme the client is using, discovery and secure connection behavior can become inconsistent even while direct local access remains healthy.
If direct local access also fails, stop treating the proxy restart as the cause. Check the Plex container state, server logs, and data mount first. The branch rule is strict: direct works means proxy path; direct fails means server or container path.
Check the proxy upstream after the restart
Inspect the proxy target and confirm it resolves to the current Plex service. A proxy configured against a temporary container IP can break after a container or network recreation. Prefer a stable host address or Docker service name on a shared user-defined network rather than copying an ephemeral IP into the proxy configuration.
Dockerโs user-defined bridge behavior gives containers on the same network name-based communication and explicit isolation. That makes a service name a more durable upstream than a container address that can change during lifecycle events.
After correcting the upstream, reload only the proxy and retry the proxied Plex URL. If the proxy now reaches Plex but login still loops, the next branch is the public hostname, TLS, or published access URL rather than the container route.
Verify the hostname and TLS path without weakening security
Confirm the browser is using the intended HTTPS hostname and that the proxy presents a valid certificate for that name. Do not solve a certificate or hostname mismatch by disabling secure connections globally. If you changed the proxy domain or path, update the Plex custom access URL so server discovery points clients at the route you actually maintain.
For broader remote-access design, ZimaSpaceโs private-cloud remote access guide emphasizes controlled gateways, tunnels, and explicit boundaries rather than opening services blindly. The same rule applies here: repair the intended ingress path instead of bypassing it with an unsafe temporary exposure.
Clear a browser session only after the routing and TLS checks pass. A stale cookie can complicate testing, but clearing state before you repair the network path can hide the real failure. Use a private browser window as a clean test without deleting working client state everywhere.
Restart the proxy again and repeat the original login test
Once login works, restart the reverse proxy one more time on purpose. Wait for it to become healthy, then use the exact same hostname and client that originally failed. A successful fix means the upstream resolves, TLS is valid, Plex is discovered at the intended URL, and the account can sign in without manual edits after restart.
If the second restart breaks the route again, inspect startup ordering and name resolution between the proxy and Plex. The issue is not solved if a human must edit an IP after every lifecycle event. Make the dependency explicit in Docker networking or the proxy configuration.
Escalate to Plex authentication only when direct and proxied routing are both healthy yet the login failure persists across clients. At that point collect Plex logs with timestamps and account/server details rather than continuing to change proxy settings that have already passed verification.
Support & Tips
More to Read

Can Plex Share a GPU With Another Docker Container?
Plex and another container can often access the same GPU, but you must test driver support, device mapping, video-engine load, memory, and recovery behavior.

How to Tell Whether a Plex Error Comes From the Client or Server
Reproduce the same item on another client, compare the session path, then collect server evidence only after scope tells you where the failure actually...

How to Configure Plex Cache and Transcode Temporary Storage
Protect persistent Plex state while placing transcode temp files on suitable local storage, then verify cleanup, free space, and restart behavior.

