You can find the location for the Nginx configuration file in /opt/homebrew/etc/nginx/ since you installed it using brew you also can write in the terminal
/opt/homebrew/etc/nginx/
brew
nginx -t it will output the configuration file path.
nginx -t