0

I'm having an issue being able to access a Strapi app deployed to a DigitalOcean droplet running Ubuntu 18.04. The docs have been followed but then they just sort of end.

The app is definitely running using pm2 on the server. The Nginx server block has been set up successfully per the guide it seems. However, the end goal is to be able to view the Strapi admin dashboard from that domain, not just the placeholder HTML.

Is there some further configuration required in order for for the app to be accessable from that domain?

isoaxe
  • 177
  • 2
  • 11

1 Answers1

0

The Nginx server requires further configuration. Edit the file located at /etc/nginx/sites-available/your_domain.

The location object should have try_files $uri $uri/ =404; by default. Replace 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;
isoaxe
  • 177
  • 2
  • 11