I believe I see two issues here:
- Only HTTPS is supported on macOS due to app security restrictions. I recommend always using HTTPS.
- Your site does not appear to support HTTPS when using port 5000. I recommend reconfiguring your load balancer to support TLS on port 5000 or simply use the default port (443).