@ -23,18 +23,16 @@ Add this to your `inventory/host_vars/matrix.DOMAIN/vars.yml` configuration:
```yaml
```yaml
matrix_jitsi_enabled: true
matrix_jitsi_enabled: true
```
## Securing your Jitsi instance with strong passwords
Please use the bash script provided in this repo to generate strong passwords for your Jitsi instance.
# Run `bash inventory/scripts/generate-jitsi-passwords.sh` to generate these passwords,
Execute the following commands in your terminal from the root of this repo:
# or define your own strong passwords manually.
```bash
matrix_jitsi_jicofo_component_secret: ""
cd inventory/scripts
matrix_jitsi_jicofo_auth_password: ""
bash generate-jitsi-passwords.sh
matrix_jitsi_jvb_auth_password: ""
matrix_jitsi_jibri_recorder_password: ""
matrix_jitsi_jibri_xmpp_password: ""
```
```
The script will add the corresponding ansible variables and passwords generated with `openssl rand -hex 16` to the bottom of your `inventory/host_vars/matrix.DOMAIN/vars.yml` configuration.
## (Optional) configure internal Jitsi authentication and guests mode
## (Optional) configure internal Jitsi authentication and guests mode
# This script assumes that you followed the documentation at https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/configuring-playbook.md and created a folder in the source code's directory like this: 'mkdir inventory/host_vars/matrix.<your-domain>'
# it will put the generated passwords for Jitsi at the end of the vars.yml file in that directory
function generatePassword(){
function generatePassword(){
openssl rand -hex 16
openssl rand -hex 16
}
}
# helper function to get the matrix domain in the host_vars directory
echo"# If this script fails, it's likely because you don't have the openssl tool installed."
function get_domain_dir(){
echo"# Install it before using this script, or simply create your own passwords manually."
counter=0
for f in *;do
counter=$(( counter +1))
if[ ! -d "$f"];then
echo"Error: could not find directory 'matrix.your.domain'"
echo"Did you create it already? Please first setup your matrix homeserver before running this script."
echo"You should start here: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/prerequisites.md"
exit1
elif[["$counter" -gt 1]];then
echo"Error: multiple directories found in ../host_vars/. Only one directory like 'matrix.your.domain' expected."
echo"Please make sure there is only one directory holding your vars.yml for this ansible playbook."
echo"Cannot continue script, exiting."
exit1
fi
# Will not set domain if zero or multiple directories are detected