How to fix 502 on tunneled https plex server

You should check your cloudflared logs to see why it is reporting a bad gateway