By mefav
I am trying to connect my react app with a wordpress backend as rest api. Previously I’ve tested with both droplet’s public ip. I setup a self signed certificate for the wordpress droplet. It works except my browser need to first connect to the wordpress droplet public ip and accept the certificate before the front end app can send any authentication data.
Now I need them to talk to each other with private network and I removed the self signed certificate in wordpress droplet and received “net::ERR_CONNECTION_TIMED_OUT” in my browser console. In order to connect with each other. How should I setup the iptables for private network on both droplets.
Do I need to setup incoming and outgoing with port 80 and 443(assume I will get let’s encrypt later) for both droplets or I just need outgoing on front end and incoming on wordpress droplet?
I am using vpn and access my react app with private ip.
I’ve asked do support and someone reply me to use their load balancer. = =
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
My bad, the real issue is CORS been blocked. Will try to change the domain inside wordpress and see what’s happen.
The best idea is to block all ports except 443 and 80 and block all incoming Ip addresses except your IP and all that behind your CDN. This tutorial might help you about iptables rules: iptables firewall Regards,
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.