2 nginx Reverse Proxy
Jonathan Schleifer edited this page 2020-03-29 17:56:50 +02:00

To use the maubot ui behinde a nginx reverse proxy the path /_matrix/maubot/v1/logs needs additional headers as it is a websocket.

Example config:

server {
    listen 443 ssl;
    ...
    location /_matrix/maubot/v1/logs {
        proxy_pass http://localhost:29316;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header X-Forwarded-For $remote_addr;
    }

    location /_matrix/maubot {
        proxy_pass http://localhost:29316;
        proxy_set_header X-Forwarded-For $remote_addr;
    }
    ...
}