DigitalOcean VPS provider - fathzer/terra-vpn GitHub Wiki

An American provider

Pros:

  • A large choice of countries to host the VPS
  • Good prices
  • Very good documentation

Cons:

  • The cheapest instance is not available in all zones.

Default values

{
    "region": "sf03",
    "instance_type": "s-1vcpu-512mb-10gb",
}

root_volume_size_gb is not used by DigitalOcean.

Configuration

User token

  • token: Your DigitalOcean personnal access token

The documentation to create a token is available here

To reduce the risk of abuse, you should restrict the token to the following permissions, using the custom scope option, to only allow the following actions:

  • Full access to droplet and firewall
  • Read access to account and ssh_key

SSH keys

  • ssh_key_name: The name of the SSH key to use to connect to the VPS.

You need to upload your public SSH key to DigitalOcean before deploying the VPS.

The default key name is odvpn.

Configuration example

{
    "vps": {
        "provider": "digitalOcean",
        "config": {
            "token": "your_digitalocean_access_token",
            "ssh_key_name": "your_ssh_key_name",
        }
    },
    "ddns": {
        "provider": "afraid",
        "config": {
            "token": "your_afraid_token",
        }
    },
    "vpn": {
        "hostname": "your_hostname"
    }
}