Help me point domain to my droplet


I bought a domain ( 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”).

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;


        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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
May 26, 2023

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!



Site Moderator
Site Moderator badge
May 27, 2023

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’


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel