DNS behind nginx proxy (tunnel)

There is possibility to use tunnel instead of sentry DNS in Angular app with self-hosted sentry. Can someone help me to configure nginx proxy to forward error reports?

I have tried:
location /sentry/ {
resolver 127.0.0.1;
set $backend “http://192.168.41.129:9000/api/3/envelope/”;
proxy_pass $backend;
}
with no success.

Thanks

What result are you expecting to see and what exactly are you seeing instead? Any nginx logs you can share?

I need to sentry receive an error of course. Sentry config:

dsn: “http://0178dc7c19dd419186b74936ceb96889@server-alias:9000/3”,
tunnel: “https://domain.com/sentry”, – here is proxy
No error logs, only pending requests from browser to proxy