[Jitsi-Docker] Using Jitsi Meet behind Nginx reverse proxy

I’ve got Jitsi Meet working on my LAN, but configuring access through my Nginx reverse proxy has proved to be a nightmare. I’m running the containers on host 192.168.0.5. All ports are default except HTTP (at 8888) and the media bridge (at 10001). I have ports 10001/udp and 4443/tcp forwarded to 192.168.0.5. I have the public URL set to https://my.domain.tld/jitsi.

The error I’m currently getting is Uncaught SyntaxError: Unexpected token '<' in several JS files.

The relevant Nginx configuration is below.

Any help is appreciated!

        location /http-bind {
                ssi on;
                proxy_pass http://192.168.0.5:8888/http-bind;
                proxy_set_header X-Forwarded-For $remote_addr;
                proxy_set_header Host $http_host;
        }

        location /xmpp-websocket {
                ssi on;
                proxy_pass http://192.168.0.5:8888/xmpp-websocket;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header Host $host;
                tcp_nodelay on;
        }

        location /jitsi {
                ssi on;
                proxy_pass http://192.168.0.5:8888/;
                proxy_set_header X-Forwarded-For $remote_addr;
                proxy_set_header Host $http_host;
                proxy_http_version 1.1;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-Ssl on;
        }