diff --git a/www/jitsi-meet/Makefile b/www/jitsi-meet/Makefile index 0b3645c6167a..aae14a11ef5b 100644 --- a/www/jitsi-meet/Makefile +++ b/www/jitsi-meet/Makefile @@ -1,33 +1,40 @@ PORTNAME= jitsi -PORTVERSION= 1.0.4048 -PORTREVISION= 2 +PORTVERSION= 1.0.6155 +DISTVERSIONPREFIX= meet- CATEGORIES= www net-im MASTER_SITES= https://download.jitsi.org/jitsi-meet/src/ -DISTVERSIONPREFIX= meet- PKGNAMESUFFIX= -meet MAINTAINER= acm@FreeBSD.org COMMENT= Secure, Simple and Scalable Video Conferences LICENSE= APACHE20 USES= cpe tar:bzip2 NO_BUILD= yes +NO_ARCH= yes CPE_VENDOR= jitsi CPE_PRODUCT= meet SUB_FILES+= pkg-message WWWDIR= ${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX} WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX} post-extract: @${MV} ${WRKSRC}/config.js ${WRKSRC}/config.js.sample @${MV} ${WRKSRC}/interface_config.js ${WRKSRC}/interface_config.js.sample + ${INSTALL_DATA} ${FILESDIR}/nginx.conf.in \ + ${WRKDIR}/nginx.conf + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + ${WRKDIR}/nginx.conf do-install: ${MKDIR} ${STAGEDIR}${WWWDIR} @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKDIR}/nginx.conf \ + ${STAGEDIR}${EXAMPLESDIR}/nginx.conf .include diff --git a/www/jitsi-meet/distinfo b/www/jitsi-meet/distinfo index c2a1900694ae..505e3387bf10 100644 --- a/www/jitsi-meet/distinfo +++ b/www/jitsi-meet/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1587866160 -SHA256 (jitsi-meet-1.0.4048.tar.bz2) = 7a6e046273a3821b85bb50bb3b2e20134af64e0112ab60128d95348509e80ea0 -SIZE (jitsi-meet-1.0.4048.tar.bz2) = 7396829 +TIMESTAMP = 1653274717 +SHA256 (jitsi-meet-1.0.6155.tar.bz2) = 6da0915587b5cf6b87def49be4a6d6b34cb82b24183b72694f2a0615921942aa +SIZE (jitsi-meet-1.0.6155.tar.bz2) = 16104152 diff --git a/www/jitsi-meet/files/nginx.conf.in b/www/jitsi-meet/files/nginx.conf.in new file mode 100644 index 000000000000..14f6a05460b0 --- /dev/null +++ b/www/jitsi-meet/files/nginx.conf.in @@ -0,0 +1,75 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + + +http { + include mime.types; + default_type application/octet-stream; + types { + application/wasm wasm; + } + + sendfile on; + keepalive_timeout 65; + + server { + listen 80 default_server; + + server_name _; + + return 301 https://$host$request_uri; + } + + server { + listen 0.0.0.0:443 ssl http2; + http2_push_preload on; + + ssl_certificate jitsi.example.com.crt; + ssl_certificate_key jitsi.example.com.key; + + ssl_session_cache shared:SSL:1m; + ssl_session_timeout 5m; + + ssl_ciphers HIGH:!aNULL:!MD5; + ssl_prefer_server_ciphers on; + + ssl_early_data on; + + server_name jitsi.example.com; + + root %%LOCALBASE%%/www/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://localhost:5280/http-bind; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $http_host; + } + + location ~ ^/colibri-ws/default-id/(.*) { + proxy_pass http://127.0.0.1:9090/colibri-ws/default-id/$1$is_args$args; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + 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; + } + } +} diff --git a/www/jitsi-meet/files/pkg-message.in b/www/jitsi-meet/files/pkg-message.in index b912182d6345..ac9699289c10 100644 --- a/www/jitsi-meet/files/pkg-message.in +++ b/www/jitsi-meet/files/pkg-message.in @@ -1,30 +1,31 @@ [ { type: install message: <