I have a website on digitalocean and I just followed the tutorial down below so i got my certificate and now my website uses https protocol. https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04
Everything is good to this point.
But there is a but. :)
I’m using node.js on my website. It connects to my mongoDB cluster and it creates an api url based on my domainname or/and droplet IP address.
For example my API_URL is: 22.214.171.124:5000/items I fetch that URL and do somethings on my website based on items.
But as i followed https protocol tutorial, i just enabled my firewall and because of that i guess, firewall is blocking my API URL and i get error on fetch.
I also can’t reach that API_URL(126.96.36.199:5000/items) manually.
While firewall is closed i can fetch my api.
What should i do?
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!