Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 2.22 KB

README-NGINX.md

File metadata and controls

63 lines (46 loc) · 2.22 KB

Matterbridge Logo   Matterbridge

npm version npm downloads Docker Version Docker Pulls Node.js CI

power by power by power by


Advanced configuration to use NGINX

Run matterbridge with nginx

Create the nginx configuration file

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/

Restart nginx and test the configuration

sudo systemctl restart nginx
sudo nginx -t

Use matterbridge with nginx

http://ubuntu.local:8099/matterbridge/