项目作者: 41north

项目描述 :
Deploy Jitsi Meet to DigitalOcean with Terraform
高级语言: HCL
项目地址: git://github.com/41north/jitsi-do.git
创建时间: 2020-04-08T19:59:49Z
项目社区:https://github.com/41north/jitsi-do

开源协议:Apache License 2.0

下载


Jitsi Digital Ocean

Terraform recipe for running Jitsi on DigitalOcean.

Running

Clone this repository:

  1. $ git clone https://github.com/41north/jitsi-do

Make sure you have installed Terraform on your system.

Rename terraform.tfvars.example to terraform.tfvars and fill the variables with your information. At least, you need to provide the following:

  1. variable "do_token" {
  2. default = ""
  3. description = "Digital Ocean API Key: https://www.digitalocean.com/community/tutorials/how-to-create-a-digitalocean-space-and-api-key"
  4. }
  5. variable "domain" {
  6. default = ""
  7. description = "Which domain is used by Jitsi."
  8. }
  9. variable "ssh_key_name" {
  10. default = ""
  11. description = "Name of the SSH Digital Ocean keys to allow remote access to the droplet."
  12. }

After everything is correctly filled, initialize terraform:

  1. $ terraform init

And to review what is going to be created:

  1. $ terraform plan

Once you’re happy just trigger the fire button:

  1. $ terraform apply

By default it will auto-install jitsi but it won’t perform automatic SSL generation with Let’s Encrypt. The reason is to control manually when to perform that step:

  1. $ ssh -i .ssh/${your_ssh_key} root@${your_droplet_ip}

And run the following (replace $EMAIL with your email):

  1. $ echo $EMAIL | /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

If everything goes well and the certification is created correctly, you can navigate to your domain and be greeted with Jitsi’s dashboard!

Au revoir, Zoom! :)

Acknowledgements

Inspired by Terraform AWS Jitsi Meet for AWS.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.