Open the NGINX configuration file on you server at this path :
"sudo vi /etc/nginx/nginx.conf"
if you have configured virtual host it's at this path :
"sudo vi /etc/nginx/sites-enabled/example.conf"
For limit the access to the URL, you have to write this :
location /configuration.json { ... deny IP ADDRESS; ... }
Tell me, if this answer work correctly !