sudo nano /etc/nginx/sites-available/matterbridge
paste this configuration and change the port to listen and the server_name using yours:
server {
listen 8099;
server_name ubuntu.local;
location /matterbridge/ {
# Redirect to Matterbridge frontend
proxy_pass http://localhost:8283/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
add matterbridge to enabled sites
sudo ln -s /etc/nginx/sites-available/matterbridge /etc/nginx/sites-enabled/
sudo systemctl restart nginx
sudo nginx -t