Hello @Sharath_Kumar,
Here is a SonarQube community, not an Nginx one. Looking at your Nginx config, I’m puzzled by the server_name entry as usually this is the vhost URL. But anyway I can’t really say much about this.
What’s sure is that the issue you have is your scanner not able to reach SQ. You should first try to reach it using curl and make sure it works before even running the scanner.
Cheers