Acme-challenge unauthorized 404 Nginx

@MikeMcQ @rg305

i had a successful dry run, what i have done so far is:

  1. Fixed the DNS records, i found the issue
  2. Updated my config file to the below:
server {
    listen 80;
    listen [::]:80;  # Add this line for IPv6

    server_name admin.tadfeen.nl;

    location / {
        proxy_pass http://localhost:3001;
    }

    location /.well-known/acme-challenge/ {
        root /usr/share/nginx/html/.well-known/acme-challenge/;
    }

}

Then i ran :

sudo certbot certonly --webroot -w /usr/share/nginx/html/.well-known/acme-challenge/ -d admin.tadfeen.nl --dry-run