File jitsi-meet.conf of Package jitsi-meet

server_names_hash_bucket_size 64;

server {
    listen 0.0.0.0:443 ssl http2;
    listen [::]:443 ssl http2;
    #ssl_certificate /var/lib/prosody/${FQDN}.crt;
    #ssl_certificate_key /var/lib/prosody/${FQDN}.key;
    ssl_certificate /etc/nginx/ssl/${FQDN}.with.chain.pem;
    ssl_certificate_key /etc/nginx/ssl/${FQDN}.with.chain.pem;
    # tls configuration that is not covered in this guide
    # we recommend the use of https://certbot.eff.org/
    server_name ${FQDN};
    # set the root
    root /srv/jitsi-meet;
    index index.html;

    location ~ ^/([a-zA-Z0-9=_\-\?]+)$ {
        rewrite ^/(.*)$ / break;
    }

    location / {
        ssi on;
    }

    # BOSH, Bidirectional-streams Over Synchronous HTTP
    # https://en.wikipedia.org/wiki/BOSH_(protocol)
    location = /http-bind {
        proxy_pass      http://127.0.0.1:5280/http-bind;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $http_host;
        proxy_method POST;
        proxy_buffering off;
        tcp_nodelay on;
    }
    # external_api.js must be accessible from the root of the
    # installation for the electron version of Jitsi Meet to work
    # https://github.com/jitsi/jitsi-meet-electron
    location /external_api.js {
        alias /srv/jitsi-meet/libs/external_api.min.js;
    }
    # xmpp websockets
    location /xmpp-websocket {
        proxy_pass http://127.0.0.1:5280/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;
    }
    # Datachannel Websockets
    location ~ ^/colibri-ws/opensuse-jitsi-meet/(.*) {
       proxy_pass http://127.0.0.1:9090/colibri-ws/opensuse-jitsi-meet/$1$is_args$args;
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";
       tcp_nodelay on;
   }
}
openSUSE Build Service is sponsored by