Cant access admin on digitalocean deployment

System Information
  • Strapi Version: 3.4.0
  • Operating System: Ubuntu 20.04 (LTS) x64
  • Database: PostgreSQL
  • Node Version: 12.20.0
  • NPM Version: 6.14.8

I’ve been following the tutorial for deploying on digitalocean and everything seemed to work fine. The server is running successfully under <my_ip>:1337 in production mode.
However when I try to access <my_ip>:1337/admin the page gets stuck on the loading animation. The console reveals Failed to load resource: net::ERR_BLOCKED_BY_CLIENT localhost:1337/admin/init:1 . I’m not sure if I’ve misconfigured something or why the browser is trying to access localhost instead of <my_ip>. Would appreciate any pointers.

@wetterlicht It seems like your PORT 1337 would be blocked by the VM.
You should try and make use of say Nginx and configure it to forward all requests coming to port 80 to port 1337.

Probably this will help you in configuring Nginx for Strapi:
Nginx Proxying | Strapi Developer Documentation

When deploying to production you should add your public URL to the

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

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