DEV Community

Allan Denot for ownVPN

Posted on • Updated on

How to create a DigitalOcean access token

Step 1: Login to your DigitalOcean Account

Go to https://cloud.digitalocean.com/login and login with your credentials.

Step 2: Generate Your DigitalOcean API Token

  1. Log into your DigitalOcean dashboard.
  2. Navigate to “API” in the main menu on the left side.
  3. In the “Tokens/Keys” section, click on “Generate New Token.”
  4. Give your token a name, select "Custom Scopes" to define granular permissions for your token

    DigitalOcean creating token

  5. Select: droplet, regions and sizes

    DigitalOcean token custom scope selection

  6. Click "Generate Token"

  7. Be sure to copy your new token immediately; you won’t be able to see it again.

    DigitalOcean new token generated

Step 3: Configure the ownvpn App

  1. Launch the ownvpn app and go to “Settings” in the menu bar.
  2. For the “Provider” option, select “DigitalOcean.”
  3. Choose your desired data center region from the “Region” dropdown menu.
  4. Click on “Credentials” and paste the API token you generated earlier.

    ownvpn provider settings

  5. Once you save your settings, a green tick will appear next to the “Credentials” button to confirm your API token is successfully integrated.

Step 4: Create Your VPN Instance

With the API set up and credentials configured, you are ready to create your first VPN instance using the ownvpn app with DigitalOcean as your cloud provider.

Top comments (0)