I ended up solving the problem. I’ll outline what I did so if anyone else comes across this they can get up and running easily.
I started out by manually putting port :443 At the end of my url and poof it worked! So apparently ports 5000 and 5001 are hard coded into the older apps.
But that’s not the answer, no one sets up a reverse proxy only to still have to type in port numbers manually. So the solution is really simple. Just forward port 5001 to port 443 on your reverse proxy server. And bam, it works just fine.
As as a side note you should not bother forwarding port 5000 as that’s the Un-encrypted http port, which isn’t safe and defeats the purpose of using a reverse proxy like caddy.