Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config pointers for self-hosted server #77

Open
caewok opened this issue May 30, 2021 · 3 comments
Open

Config pointers for self-hosted server #77

caewok opened this issue May 30, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@caewok
Copy link

caewok commented May 30, 2021

Not a bug issue but rather some tips for setting up a self-hosted jitsi VM, after some long trial-and-error. Thought it might be helpful to users here.

I have set up a self-hosted server successfully both from an Ubuntu 20.04 VM and from Vultr's One-Click Jitsi app. The VTTA instructions are helpful, but in the end I did not follow their instructions for CORS or for enabling authentication (see below for how I did it). In both cases, I had to do the following:

Cloudflare DNS
In order to generate the Let's Encrypt certificate, change the following beforehand in Cloudflare for your domain name:

  • Set up DNS in cloudflare to point to jitsi server
  • Change SSL/TLS to Flexible
  • In Edge Certificates, turn off Always Use HTTPS

After you actually generate the Let's Encrypt certificate, you can revert these settings.

Firewall
Before generating the Let's Encrypt certificate, allow ports 80 and 443:

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw reload

You will also need to allow UDP ports for jitsi communications:
sudo ufw allow 10000:20000/udp

CORS
Foundry will fail to connect, logging CORS errors unless you switch the configuration to allow cross domains. Edit the Prosody configuration at /etc/prosody/config.avail/[DOMAIN].cfg.lua by adding or modifying:
cross_domain_bosh = true

User authentication
If you are using the Vultr one-click or a similar setup, follow those instructions to enable user authentication if you want. If you are installing from a Ubuntu VM, the instructions from the Jitsi Secure Domain setup worked for me. It is a bit simpler, however, to create users in Prosody by using sudo prosodytcl adduser username@DOMAINNAME.

Foundry settings
In Foundry, your custom settings should look like (no https prefix, btw):

Server URL: DOMAINNAME
Username: username@DOMAINNAME

@benbarbour
Copy link

Hey thanks! The last piece I needed for my "jitsi and foundry behind traefik on a digital ocean droplet" setup was that I was lacking the "@domainname" from my username! :D

@bekriebel
Copy link
Collaborator

Thanks for this! I'm going to flag it as an enhancement ticket to get the info added to the README or a wiki.

@bekriebel bekriebel self-assigned this Jul 26, 2021
@bekriebel bekriebel added the enhancement New feature or request label Jul 26, 2021
@dinotheextinct
Copy link

dinotheextinct commented Feb 17, 2022

Hey thanks for this, I finally managed to get foundry working with my own jitsi instance.
I got it working now, though the performance is still weird, some specific users have dropping cam and audio connection very frequently, also the module kinda of frooze my foundry installation each session once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants