Final step for DigitalOcean droplet deployment

System Information
  • Strapi Version: 4.10.5
  • Operating System: Ubuntu 18.04 (On DO)
  • Database: PostgreSQL
  • Node Version: 16.20.0 (On DO)
  • NPM Version: 8.19.4 (On DO)

I’ve followed the docs, but am unsure of how to proceed after reaching the end of the setup instructions.

Nginx has been installed and configured. My droplet IP is 142.93.203.163 and the subdomain where I’m hosting my Strapi project is cms.eminenceconstructionlv.com. I only get the message that the server block is working.

How do I actually link my project to the domain so I can login to the admin dashboard? Not sure how to diagnose to see if I have misconfigured something.

Solved this by further configuring the Nginx server. Edited the file located at /etc/nginx/sites-available/cms.eminenceconstructionlv.com.

The location object had try_files $uri $uri/ =404; by default. Replaced this with the following:

proxy_pass http://localhost:1337;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
1 Like