# Self-hosting

Choosing the self-hosting option requires some effort, but it provides you with direct access to your infrastructure, and your data will be stored in your own account.

We utilize Cloudflare and its products for hosting services. We continually strive to stay current with our offerings, providing you with the best solutions possible.

### Cloudflare services

Below you can see the services that we are using from the Cloudflare ecosystem:

* [Analytics Engine](https://developers.cloudflare.com/analytics/analytics-engine/) (analytics)
* [Custom hostnames ](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/)(domain)
* [D1](https://developers.cloudflare.com/d1/) (database)
* [KV](https://developers.cloudflare.com/kv/) (key-value storage)
* [Queues](https://developers.cloudflare.com/queues/)
* [R2](https://developers.cloudflare.com/r2/) (file storage)
* [Workers](https://developers.cloudflare.com/workers/) (processing)
* [Workers for Platforms](https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/) (OEM)
* [Workflows](https://developers.cloudflare.com/workflows/)

### Onboarding

To get started with self-hosting, follow these simple steps.&#x20;

First, we will check if your current Cloudflare account (or the new one you created) is set up correctly.&#x20;

Next, you'll need to generate a token that you will paste into the host form in the EdgeTag app.&#x20;

{% hint style="warning" %}
If you are setting up hosting as an OEM or are not using Cloudflare for name servers (NS), you will also need to enable [custom domain support](/hosting/self-hosting/custom-domains.md) to generate first-party subdomains.
{% endhint %}

Let's first check if the account is set up correctly.


---

# Agent Instructions: 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:

```
GET https://docs.edgetag.io/hosting/self-hosting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
