Add Server Provider

These are steps to take if this is a new client or client site and their Digital Ocean account isn't already connected to our Forge account. i.e. We don't have an active entry in our Laravel Forge Server Providers page for that client's Digital Ocean account.

Note that this assumes the client's account has already been setup in Digital Ocean and that FC has been added to it so that we can manage their Digital Ocean resources.

After completing this, you'll be able to provision Digital Ocean virtual machines directly from Laravel Forge.

Resources used

Steps

  1. Navigate to the clients Digital Ocean dashboard
  2. Navigate to the API settings page. image
  3. On the Applications & API screen on the Tokens tab, select "Generate New Token" image
  4. On the "Create A New Personal Access Token" page, enter the following details:
    • Token Name: forge
    • Expiration: No expire
    • Scopes: Full Access
  5. Click "Generate Token"
  6. You'll be redirected back to the token listing page, and you'll be shown your new token secret (this is a once-off, then you'll not be able to see it again) image
  7. In Bitwarden, under the clients folder, create a new Note called " - Digital Ocean" if it doesn't already exist.
  8. In that note, add a secret field called "Token - Forge" with the value of the token generated above. image
  9. In Laravel Forge, navigate to the "My Account" page. image
  10. On the "My Account" page, navigate to "Server Providers" and then click "Provide API Token"
  11. Ensure "DigitalOcean (2.0)" is selected, and enter the clients name and paste the token into the relevant fields. image
  12. Click "Add"
  13. You'll now have new entry in the "Server Providers" list. image