EE v4 custom reverse proxy (to couchdb or to regular site) on nginx does not work

Hi:

My final goal is to reverse proxy from a site subdirectory (/test) to couchdb instance (at localhost:) but it does not work/

I also tried very simple example and it did not work:
location /somepath {
proxy_pass http://www.example.com/link/;
}

I used EEv4 with redis cache and LE SSL (straight from the EE v4).
I also use Cloudflare.

I saved the proxies at
/var/lib/docker/volumes/domainname_config_nginx/_data/custom/user.conf.

I restarted the site nginx.

For all the requests I get wordpress 404 page.

What should I do?