DEV Community

Allan Denot for ownVPN

Posted on • Edited 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.

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay