Hello,
I bought a domain (sjearthquakes.app) from GoDaddy, created a Droplet in DigitalOcean. I have prescribed NameServers for GoDaddy:
In DigitalOcean, in the Networking -> Domains section, I added this domain for my droplet.
It has been more than 12 hours since I set all the settings.
In the droplet itself, I have Ubuntu 22.10 x64 spinning, inside of which nginx and also my NodeJS server are running.
If I contact directly by the IP address of the Droplet my server on Node JS works out as it should. But if you use the domain name, nothing happens (“We can’t connect to the server at sjearthquakes.app.”).
Here is my nginx setup file:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name sjearthquakes.app www.sjearthquakes.app;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Please, help me to identify the issue.
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
As far as I can see your domain name is configured correctly, however it is redirecting to HTTPS and you don’t seem to have an SSL installed.
To quickly fix that you can install a free Let’s Encrypt certificate by following the steps here:
After that it should all be working as expected.
Let me know how it goes!
Best,
Bobby
Hello @ruslangaliev
Keep in mind that DNS changes might take up to 24 hours in order to update. This is mainly due to DNS cache from the ISPs, but you can also experience issues when trying to load the site due to local cache as well.
Looking at the application it is currently working just fine loading via https and printing the message ‘It works’
Regards