I work from home, and I'm not behind a proxy as far as I know. The same endpoint works fine deployed to a bare VM hosted elsewhere. No fancy load balancers or routing, just a direct connection, so I don't believe it's my internet.
I set up a test endpoint using sleep so I could easily reproduce the issue. I tested via curl with the same results (504 returned to curl, 499 in logs).
I forgot about this, but I'm using the "Pivotal SSL" marketplace service. Could that have something to do with it? Same results with either HTTP or HTTPS, but there's only one CNAME for the domain so that probably doesn't make a difference.