jitsi / docker-jitsi-meet

Jitsi Meet on Docker
https://hub.docker.com/u/jitsi/
Apache License 2.0
3.08k stars 1.37k forks source link

Prosody version issue #710

Closed dyapasrikanth closed 2 years ago

dyapasrikanth commented 4 years ago

When I configure APAP url (_JWT_ASAPKEYSERVER=http://10.0.2.15:3001/publickey) with IP:PORT then I am getting error as mentioned here.

Installed prosody version

prosody:
  Installed: 0.11.5-1~stretch6
  Candidate: 0.11.5-1~stretch6
  Version table:
 *** 0.11.5-1~stretch6 500
        500 http://packages.prosody.im/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status
     0.11.2-1~bpo9+1 100
        100 http://ftp.debian.org/debian stretch-backports/main amd64 Packages
     0.9.12-2+deb9u2 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

In the container http.lua doesn't have the extra arguments mention in this master branch. https://github.com/bjc/prosody/blob/master/net/http.lua#L277

http.lua In the container

local http_service = basic_resolver.new(host, port_number);

In the bjc/prosody

local http_service = basic_resolver.new(host, port_number, "tcp", { servername = req.host });

That is the reason it is failing. Are we using latest version of prosody ?

goacid commented 4 years ago

I add this to the dockerfile, maybe it can help:

RUN sed -i -Ee 's/(return nil, "Invalid typ")/--\1/g' /usr/local/share/lua/5.2/luajwtjitsi.lua  
RUN sed -i -Ee 's/(basic_resolver.new\(host, port_number)(\);)/\1, "tcp", { servername = req.host }\2/g'  /usr/lib/prosody/net/http.lua
saghul commented 2 years ago

Prosody has been updated to 0.12 since.