The connection has timed out

Maybe Instead of Digitalocean’s Pre-built image, Try Installing manually as per:
https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md