1

I am an amateur programmer and currently lost in deploying my app to a digital ocean cloud server. I followed numerous online tutorials and manage to setup SSH, NodeJS, PM and Nginx. Everything works fine with the Nginx welcome page displayed. However, I got stuck when I tried to configure the Nginx config file to proxy into my Adonis app. I tried the setup with Adonis documentation but it wont works as well.

The browser display 502 Bad Gateway with the error log displaying connect () failed (111: Connection refused). I tried to read more examples on the net but unable to find one.

How to do the setup the Nginx to run my adonis apps?

Nginx config

PM2 status

Port network

Connection Error

502 Bad Gateways

James Z
  • 12,209
  • 10
  • 24
  • 44
fullmoon
  • 11
  • 1

0 Answers0