Can you check your ./config/server.js or any of the environment configs in ./config/env/*/server.js and ensure you properly set the url key to the “public url” of your Strapi site? see: https://strapi.io/documentation/v3.x/concepts/configurations.html#server
Also are you using the DigitalOcean one-click? If so that key is set via the .env file