Colibri Websocket Nginx


I currently configure nginx for the colibri Websockets. In the videobridge configs, Ive set a serverid, which is the server IP of the specific host.
Now, I dont want to add this block below for every videobridge, so how can I write one block which includes all these IPs? Via regex? It should also be in proxy_pass then.

location ~ ^/colibri-ws/SERVERIP/(.*) {
proxy_pass http://SERVERIP:9090/colibri-ws/SERVERIP/$1$is_args$args;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
tcp_nodelay on;
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;

Thank you.