> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/reference/data-sources/amazon-s3/s3-compatible-endpoints-digitaloceans-spaces.md).

# S3 compatible endpoints (DigitalOcean spaces)

## Configuration

### Connecting the DigitalOcean spaces data source

UI Bakery supports S3-compatible object storage APIs, for example, [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/).&#x20;

You can connect it following the same flow as with the AWS S3 data source. Let's recap the steps:

1. On the **Data sources** page, click **Connect**, and select *AWS S3* in the Data sources list.
2. Enter the data source name and specify the **Access key ID** and **Secret access key ID.**
3. Select the **Use custom endpoint** checkbox and specify the base URL.
4. Click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2Fn0cNZWTtAQeT6j63gq57%2FCleanShot%202025-04-08%20at%2012.41.50%402x-min.png?alt=media&amp;token=2f887acd-eeab-4de3-8c33-934f248230ad" alt=""><figcaption></figcaption></figure>

## Usage

### Using the S3 file uploader component with DigitalOcean Spaces

Using the [S3 file uploader](/reference/working-with-components/aws-s3-uploader.md) component implies direct upload to the bucket. If you're planning to use it in UI Bakery, you need to set up *CORS settings* in your DigitalOcean bucket settings.&#x20;

In the settings, use `https://cloudworkbench.uibakery.io` for the **Origin** field - on cloud. For the self-hosted version, change `https://cloudworkbench.uibakery.io` to the domain from which you access your UI Bakery instance.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FtQ2FivKo8URb5qlQII5u%2Fspaces_UX6zPRMFFK0yrTghj7cY_uploads_git-blob-5de4daa5ab48e97091962c066c2a23841d126ab9_image%20(178)-min.png?alt=media&amp;token=170dd534-5192-4c27-afa0-9a123447a8c6" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.uibakery.io/reference/data-sources/amazon-s3/s3-compatible-endpoints-digitaloceans-spaces.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
