how to connect two droplets running two different?

March 1, 2019 587 views
Load Balancing DigitalOcean CentOS Applications

I’m trying to connect one droplet with a wordpress app to another with a nodejs app, lets say a chat. would be the wordpress app. I want that when someone enter to, he or she enters to the nodejs app. how could i connect both apps behind a load balancer and a database?

1 Answer

This should help:

Make sure all three droplets have private networking enabled so Nginx proxying happens on those internal networks. In your Nginx vhost definition you’ll have two “location” blocks, one for the root and one for the chat app


Have another answer? Share your knowledge.