Cant access admin on digitalocean deployment

When deploying to production you should add your public URL to the
./config/server.js

module.exports = ({ env }) => ({
    //...
    url: 'https://myPublicUrl.com', // your public URL
    //...
});

All modifications made to the url and admin.url properties require admin rebuild.