Output colibri stats via nginx

Hello,

I have enabled colibri stats on a private interface. I can get the stats via:
curl localhost:8080/colibri/stats

Is it possible to send / get these stats to nginx? For example: Is it possible to set nginx root directory to something like localhost:8080/colibri/stats?

Then I could use nginx to serve the stats to the public. I don’t want to use a colibri public interface.

Cheers!

You need to proxy the GET request from nginx to the server listening on 8080

location /jvb/stats {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass http://localhost:8080/colibri/stats;
}

Of course, you should limit access to this information.

1 Like

Hello,
I’m facing the same issue with nginx. I can get the statistics via curl but i can’t reach the statistics under meet.mydomain.com/colibri/stats

In an other installation I used jetty and there was no problem by accessing the stats via meet.mydomain.com/colibri/stats

I tried to add a proxy_pass in /etc/nginx/sites-enabled but without success

Did you managed to solve the issue?
thanks

Solved the issue, had a typo in .conf file, proxy_pass works fine now
thank you @RalfD

So the latest jitsi install on ubuntu 18.04 (via apt) does not have colibri stats going to public IP (ie only available via localhost ?) . Is there a way to get the colibri stats to IP other than localhost/127.0.0.1 without proxy’ing through nginx . is there a setting in jitsi which will let colibri stats be also available to IP other than localhost ? I want to try this on ec2 but I m not able to get it working.

awesome thanks . works now.