Skip to content

Terraform plan for spinning up and Owncast server in DigitalOcean

License

Notifications You must be signed in to change notification settings

samLozier/owncast-terraform

 
 

Repository files navigation

owncast-terraform

Variables to set:

  • do_token = bearer token for your DigitalOcean account
  • owncast_server_url = the url you're using for the Owncast server

The owncast_server_url will need to have been registered with whoever your domain registrar is to point to your floating IP that is configured in the do_owncast.tf file. You should also create a floating IP for yourself in DigitalOcean to re-use so you can spin droplets up and down as you need without having to wait for DNS to propogate or anything.

The config file I'm using is specifying a rather large sized droplet so be sure you don't forget about it. Running it for 2-3 hours for a movie should be fine, probably coming out to $2-5 a session depending on how many people you are streaming to due to data egress fees. I don't have any hard numbers right now. I've tested this config for up to 4 viewers, hope to have more numbers soon.

Not required but I would also recommend setting up a firewall rule for this server like so:

  • 22 TCP (SSH)
  • 80 TCP (HTTP)
  • 443 TCP (HTTPS)
  • 1935 TCP (RTMP, what OBS streams on)

Then add a tag rule for it, and just make sure the name matches in the Terraform config.

About

Terraform plan for spinning up and Owncast server in DigitalOcean

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%