Gateway Timeout and 404

I don’t know why but I setup my Rocket.chat with DigitalOcean 1 click and when I was setting up https, whenever I go to my domain, I get Gateway Timeout, whenever I go to my IP I get 404 page not found