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:
- An active DashX account
- A Google Cloud project with billing enabled
- A storage bucket to upload into
Create a service account
- Open the Google Cloud Console and select your project
- Go to IAM & Admin > Service Accounts and click Create service account
- Give it a name (e.g.
dashx-storage) and create it - Grant it the Storage Object Admin role, scoped to the bucket you want to use
- Open the service account, go to the Keys tab
- 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
- Log in to your DashX workspace
- Navigate to Settings > Integrations
- Click [+] to add a new integration and select Google Cloud Storage
- Choose the environments you want to enable it for
- Enter the configuration below and save
Configuration
| Field | Description |
|---|---|
| Credentials | The full contents of the service account JSON key file. |
| Asset Host | The hostname files are served from. Set this to your CDN domain if you front the bucket with one. |
| Upload Folder | A 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.