Adding the tracking id , use of nginx to handle multiple services

Hi!

Is it possible to use the matomo without being invasive, without me having to touch the code of the services?
I am using the nginx reserve proxy as a front for many of my services, using the dockerized version (using docker + docker-compose.yml).
In this example I am running 2 services ; container-1 and container-2 , I want matomo to track them both.

My nginx-proxy.conf looks something like this:

server {
    listen          80;
    server_name     container1.com;
    location / {
        proxy_pass http://container-1;
    }
}

server {
    listen        80;
    server_name   container2..com;

    location / {
      proxy_pass  http://container-2;
    }
}

Would it be possitlbe to put in the tracking id in this nginx-configurion file ?

Best, i