Skip to main content

Google Cloud Storage

Store files uploaded to DashX in your own Google Cloud Storage bucket. Once installed, this integration becomes available as a storage provider for file, image, video, and other media data types.

Prerequisites

Prerequisites

Before setting up the Google Cloud Storage integration, ensure you have:

Create a service account

  1. Open the Google Cloud Console and select your project
  2. Go to IAM & Admin > Service Accounts and click Create service account
  3. Give it a name (e.g. dashx-storage) and create it
  4. Grant it the Storage Object Admin role, scoped to the bucket you want to use
  5. Open the service account, go to the Keys tab
  6. Click Add key > Create new key, choose JSON, and download the file
warning

The downloaded JSON is a credential. Store it securely and do not commit it to source control.

Configure CORS

If your application uploads files directly from the browser, the bucket needs a CORS policy that allows requests from your application's origin. Set this with gsutil cors set or through the Cloud Console.

Connect to DashX

  1. Log in to your DashX workspace
  2. Navigate to Settings > Integrations
  3. Click [+] to add a new integration and select Google Cloud Storage
  4. Choose the environments you want to enable it for
  5. Enter the configuration below and save

Configuration

FieldDescription
CredentialsThe full contents of the service account JSON key file.
Asset HostThe hostname files are served from. Set this to your CDN domain if you front the bucket with one.
Upload FolderA prefix within the bucket to upload into, so DashX files stay separate from other objects.
tip

Use a different bucket or a different upload folder per environment, so development uploads never mix with production assets.