author | title | summary | tags | ||||
---|---|---|---|---|---|---|---|
Stephan Lichtenauer |
Jitsi Meet (Nomad) |
This is a complete JITSI MEET instance that can be deployed via nomad. |
|
This is a complete jitsi-meet
installation in one jail that can be started with pot
but it can also be deployed via nomad
.
The jail configures itself on the first start for your environment (see notes below), for details about how to run jitsi-meet
in a FreeBSD jail in general, see this blog post.
NGINX is started as blocking task when the jail is started, all other services are started as services.
Deploying the image or flavour should be quite straight forward and not take more than a few minutes.
- Create your local jail from the image or the flavour files as with every other jail (see documentation below).
- Adjust to your environment:
pot set-env -p <yourjailname> -E DOMAINNAME=<yourdomain> -E PUBLICIP=<yourpublicip> -E PRIVATEIP=<yourpotip>
- <yourjailname> is the name of the newly created/imported jail, e.g. jitsi-meet-nomad-fbsd-amd64-12_1_0_9
- <yourdomain> should be the FQDN of your server that users can connect to in their web browser, e.g. jitsi.honeyguide.net
- <yourpublicip> is the public IP address associated with the server behind this domain name
- <yourpotip> is the IP address that has been created by '''pot''' when importing/creating the jail (see the output of
pot import
orpot create
, e.g. 10.192.0.3.
- Forward the needed ports:
pot export-ports -p <yourjailname> -e 80:80 -e 443:443 -e 10000:10000 -e 4443:4443
with <yourjailname> again being the name of your newly created/imported jail. - Start the pot:
pot start <yourjailname>
. On the first run the jail will configure itself and start the services. If it would not be for the following one workaround step, you could now use your video conference platform.
Workaround for missing UDP port forwarding:
pot
at the moment only forwards TCP ports, not UDP ports. Therefore you need to fix the port forward each time you start the jail manually with a command like this:
echo "
rdr pass on em0 inet proto tcp from any to <yourhostip> port = http -> <yourpotip> port 80
rdr pass on em0 inet proto tcp from any to <yourhostip> port = https -> <yourpotip> port 443
rdr pass on em0 inet proto udp from any to <yourhostip> port = 10000 -> <yourpotip> port 10000
rdr pass on em0 inet proto tcp from any to <yourhostip> port = 4443 -> <yourpotip> port 4443
" | pfctl -a pot-rdr/<yourjailname> -f -
<yourhostip> is the IP address users will connect to, <yourpotip> is the pot
generated IP address (e.g. 10.192.0.3), <yourjailname> is the name you have given your jail.
For more details about nomad
images, see about potluck.