Allow to specify hosts hash entries in config.js with properties like org.jitsi.videobridge.ofmeet.hosts.{domain|muc|bridge|focus}
… org.jitsi.videobridge.ofmeet.hosts.{domain|muc|bridge|focus}, fixes #77
Thank you for the contribution
There is a system property for the openfire xmpp domain called xmpp.domain. It might be better to use that instead of creating org.jitsi.videobridge.ofmeet.hosts.domain
As a default, we might want to use the domain name of the first available conference service (which we can lookup), instead of using a hard-coded value.
@deleolajide In our particular case we would like to still use the default xmpp.domain, but have a different value for the org.jitsi.videobridge.ofmeet.hosts.domain (config.js hosts->domain value)
The reasoning behind that is that the XMPP users are: [email protected]
But the URL for jitsi will be https://jitsi.domain.com:7443/ofmeet
Reasoning is that the ips for each domain are different:
- domain.com points to the ip address of the website www.domain.com
- jitsi.domain.com points to a different ip (which is also pointed at with the SRV registry _xmpp-client._tcp and _xmpp-server._tcp for domain.com)
Does this make sense, or is there another way to configure this?
@guusdk how can we lookup the "conference" and other hardcoded value?
Does this make sense
No. You have confused me. This is my understanding
ofmeet url https://domain.com/ofmeet/myconf
openfire openfire xmpp server = xmpp.domain.com (SRV registry _xmpp-server._tcp) openfire web server = https://xmpp.domain.com:7443
reverse proxy nginx web server = https://domain.com
config.js "hosts": { "domain": "domain.com", "focus": "focus.domain.com", "muc": "conference.domain.com", "bridge": "jitsi-videobridge.domain.com" },
Our setup
In our setup the IP of Openfire is not the same as the principal domain, which is used for the company website. That is:
- The IP of domain.com points to IP A.B.C.10
- The IP of xmpp.domain.com points to IP D.E.F.20
Let me know if I have made myself clearer now, as full example, copying your example above:
ofmeet url
https://jitsi.domain.com/ofmeet/myconf
** Company website** www.domain.com domain.com
openfire openfire xmpp server = xmpp.domain.com (SRV registry _xmpp-server._tcp) openfire web server = https://xmpp.domain.com:7443
reverse proxy nginx web server = https://jitsi.domain.com (In our case not implemented yet, but valid option for the discussion**
config.js "hosts": { "domain": "jitsi.domain.com", "focus": "focus.domain.com", "muc": "conference.domain.com", "bridge": "jitsi-videobridge.domain.com" },
"domain": "jitsi.domain.com",
I am not sure that is correct. From my experience, that should be domain.com. It is used for the XMPP jingle signalling which requires an XMPP domain name and not a web server domain name.
In my case everything worked fin, until I shared the screen, in that case we got black screens.
Changing the parameter in the config.js seemed to fix it.
But obviously, I have not the view of the full picture, so not sure if this has other effects that I am not foreseeing.
So far everything seems to be working by setting the domain in the config.js (crossing fingers)