Connecting nextjs App to domain issues
Answered
Horned oak gall posted this in #help-forum
Horned oak gallOP
Hi I've gone through and have my app running on a VM with pm2 + nginx handling it on a http:// ip address
I am now trying to connect the nginx server to my godaddy domain but encountering issues.
I have the CNAME record and then a A type record with my VM's IP as the value(cannot enter port 80 on that value which is what nginx is listening to on my VM). I also have yet to set up the SSL certificate.
Currently trying to go to the godaddy domain as http:// {domainname} is getting a "server took too long to respond" error. I wonder if this could be because the SSL cert isn't set up yet or is there a different issue going on here?
I am now trying to connect the nginx server to my godaddy domain but encountering issues.
I have the CNAME record and then a A type record with my VM's IP as the value(cannot enter port 80 on that value which is what nginx is listening to on my VM). I also have yet to set up the SSL certificate.
Currently trying to go to the godaddy domain as http:// {domainname} is getting a "server took too long to respond" error. I wonder if this could be because the SSL cert isn't set up yet or is there a different issue going on here?
Answered by Horned oak gall
I switched over to cloudfare and set up my DNS there. Definitely recommend this route as they proxy your DNS connection behind their servers that are already SSL certified FOR FREE.
3 Replies
Horned oak gallOP
Also I haven't set up the SSL cert yet because originally I was going with certbot as that seems to be the nextjs community recommendation but I saw certbot is discontinuing support for windows and was looking for another recommendation instead of certbot
Horned oak gallOP
Sooo turns out godaddy removed their api with the ability to auto-renew certs via win-acme or other ways
Horned oak gallOP
I switched over to cloudfare and set up my DNS there. Definitely recommend this route as they proxy your DNS connection behind their servers that are already SSL certified FOR FREE.
Answer