Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

27 строки
1.0 KiB

  1. #!/usr/bin/env bash
  2. # This is a bash script for generating strong passwords for the Jitsi role in this ansible project:
  3. # https://github.com/spantaleev/matrix-docker-ansible-deploy
  4. function generatePassword() {
  5. openssl rand -hex 16
  6. }
  7. echo "# If this script fails, it's likely because you don't have the openssl tool installed."
  8. echo "# Install it before using this script, or simply create your own passwords manually."
  9. echo ""
  10. JICOFO_COMPONENT_SECRET=$(generatePassword)
  11. JICOFO_AUTH_PASSWORD=$(generatePassword)
  12. JVB_AUTH_PASSWORD=$(generatePassword)
  13. JIBRI_RECORDER_PASSWORD=$(generatePassword)
  14. JIBRI_XMPP_PASSWORD=$(generatePassword)
  15. echo "# Paste these variables into your inventory/host_vars/matrix.DOMAIN/vars.yml file:"
  16. echo ""
  17. echo "matrix_jitsi_jicofo_component_secret: "$JICOFO_COMPONENT_SECRET
  18. echo "matrix_jitsi_jicofo_auth_password: "$JICOFO_AUTH_PASSWORD
  19. echo "matrix_jitsi_jvb_auth_password: "$JVB_AUTH_PASSWORD
  20. echo "matrix_jitsi_jibri_recorder_password: "$JIBRI_RECORDER_PASSWORD
  21. echo "matrix_jitsi_jibri_xmpp_password: "$JIBRI_XMPP_PASSWORD