Pull from Docker proxy returns unknow manifest

Hi, I have a running nexus3 container. I’ve tried it behind a Nginx and without a nginx, neither ways it doesn’t work. I want to use it as a proxy and pull docker images from docker hub with that. I found this nginx config on internet:

server {
    listen 80;
    server_name X.X.X.X ;
    keepalive_timeout 60;
    location ~ ^/(v1|v2)/[^/]+/?[^/]+/blobs/ {
          if ($request_method ~* (POST|PUT|DELETE|PATCH|HEAD) ) {
              rewrite ^/(.*)$ /repository/docker-hosted/$1 last;
          }
          rewrite ^/(.*)$ /repository/docker-group/$1 last;
    }

    location ~ ^/(v1|v2)/ {
          if ($request_method ~* (POST|PUT|DELETE|PATCH) ) {
              rewrite ^/(.*)$ /repository/docker-hosted/$1 last;
          }
          rewrite ^/(.*)$ /repository/docker-group/$1 last;
      }
    location / {
      proxy_pass              http://172.18.0.2:8081; # Container IP
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto "http";
    }
}

Also I added insecure-registries entry to daemon.json.
I try to login with docker login X.X.X.X:80 and it’s fine but I can’t pull any image.
It returns:

Using default tag: latest
Error response from daemon: manifest for X.X.X.X:80/busybox:latest not found: manifest unknown: manifest unknown

I’ve created a Docker-proxy, Docker-group and Docker-private repositories based on documents. blog.sonatype.com . I’ve tried it with and without http ports but it returns the same error. I appreciate it if someone can help me with it.
Thank you.