# Image CDN (tebi)

{% hint style="info" %}
Chú ý nếu bạn cấu hình sai tính năng này, hệ thống sẽ không thể upload hình ảnh. Vì thế vui lòng xem kỹ hướng dẫn
{% endhint %}

Tebi cho bạn miễn phí 25GB để lưu trữ hình ảnh, file và có server toàn thế giới. Sau khi đăng ký tài khoản tại tebi.&#x20;

#### Để chuẩn bị cho tính năng này bạn cần:

* Có quyền quản lý domain. Tạo ra được 1 sub domain
* Bạn cần bật được https cho sub domain này. Nếu bạn dùng cloudflare thì tính năng này có sẵn
* Tạo 1 tài khoản miễn phí tại tebi.io

### Hướng dẫn đăng ký và sử dụng tebi.io&#x20;

Bấm vào link sau để đăng ký <https://tebi.io> sau khi đăng ký hoàn tất. Tại trang: <https://client.tebi.io/buckets/> bạn sẽ điền <mark style="color:red;">**bucket name**</mark> là sub domain của bạn

<figure><img src="/files/vcyq9MHYKkkdJR53EbSs" alt="" width="375"><figcaption></figcaption></figure>

Bạn sẽ điền sub domain của bạn vào. Ví dụ

* Domain của bạn là **domain.com** và bạn muốn chứa hình ảnh vào **img01.domain.com**
* Bạn sẽ điền img01.domain.com vào ô Enter Bulket Name

Sau đó bạn bấm qua

<figure><img src="/files/Rkh6KvjZeRpq9VzUjkwB" alt="" width="201"><figcaption></figcaption></figure>

Và tạo ra 1 key bằng cách điền tên bucket name vào (img01.domain.com)

<figure><img src="/files/lKv9akc1qUqeOXHDu1wK" alt="" width="375"><figcaption></figcaption></figure>

Bạn sẽ thấy có thông tin <mark style="color:red;">**Key**</mark> và <mark style="color:red;">**Secret Key**</mark>. Lưu thông tin này lại và trở lại mục quản lý domain của aiktp.com

<figure><img src="/files/Beyq2yynMOmY3Pu1sUkn" alt="" width="375"><figcaption></figcaption></figure>

#### Tại mục quản lý Website của aiktp.com

Sau khi thêm domain, bạn sẽ thấy mục Image CND tại menu Trang web => Img CDN

<figure><img src="/files/8lsfOQVwLHiYHC9ICfl3" alt="" width="375"><figcaption></figcaption></figure>

Bấm vào nút "Add" để thêm, sau đó bạn chọn Tebi.io

<figure><img src="/files/xWEsVhVJQg0jGolYdprU" alt="" width="375"><figcaption></figcaption></figure>

Bạn sẽ điền 3 thông tin từ Tebi vào gồm: Bucket Name, Key và Secret ở trên vào

<figure><img src="/files/4tjGglAphkkIH4bSS6Zq" alt="" width="375"><figcaption><p>\</p></figcaption></figure>

Sau khi điền vào sẽ trông thế này

<figure><img src="/files/lgiXyNFA4UkBYpP5qsaC" alt="" width="375"><figcaption></figcaption></figure>

Tiếp đến bạn bấm **Check & Save** để hoàn tất.

Sau khi bạn bấm hệ thống sẽ upload 1 file có tên hello.svg lên bucket của bạn. Bạn cần cấu hình trường Cname trong mục quản lý domain của bạn

Truy cập vào trang quản lý domain của bạn:

* **Chọn trường Type**: CNAME
* **Chọn Name**: img01 (trùng với tên sub domain)
* **Target**: điền s3.tebi.io

Bạn nhớ chọn đám mây màu vàng để có thể kích hoạt **https** và load nhanh hơn

<figure><img src="/files/aLLzF0RjR6BXomQ6AzYX" alt=""><figcaption></figcaption></figure>

Sau khi cấu hình xong. Bạn có thể xem thử 1 quay lại editor (nhớ reload lại trang) và upload 1 file và kiểm tra xem file có hiện ra không.&#x20;

**Trong trường hợp bạn không dùng Cloudflare (không bật đám mây vàng)**

Xem theo hướng dẫn của Tebi để dùng https của nó tại <https://docs.tebi.io/intro/virtual_hosting.html>&#x20;

Trong tebi, bấm vào mục edit bucket

<figure><img src="/files/YBcglL2WQ9wgZemwFkRT" alt=""><figcaption></figcaption></figure>

Sau đó bạn check vào như hình.

<figure><img src="/files/8W8Kv6I4ENP5iCfla3we" alt="" width="544"><figcaption></figcaption></figure>

**Chú ý:** bạn phải làm theo hướng dẫn <https://docs.tebi.io/intro/virtual_hosting.html> thì mới có thể bật được https certificate nhé.&#x20;


---

# 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://vn.docs.aiktp.com/ai-seo/quan-ly-website/image-cdn-tebi.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.
