> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/vi/cai-dat/using-the-toolkit/3.-initialize-the-configuration.md).

# 3. Khởi tạo cấu hình

### Khởi tạo cấu hình <a href="#initializing-the-configuration" id="initializing-the-configuration"></a>

Hãy khởi tạo các tệp cấu hình cho máy chủ mới của chúng ta với một số giá trị mặc định hợp lý bằng cách chạy bundle `bin/init` tập lệnh.

{% code title="Chạy khởi tạo" %}

```
bin/init
```

{% endcode %}

Script này sẽ **không** ghi đè lên mọi tệp cấu hình hiện có.

Bây giờ hãy kiểm tra nội dung của `thư mục config/,` thư mục bằng `ls` lệnh:

{% code title="Liệt kê thư mục config" %}

```
ls config
```

{% endcode %}

Nếu mọi thứ được khởi tạo thành công, bạn sẽ thấy ba tệp cấu hình: `overleaf.rc`, `variables.env` và `phiên bản`. Đây là các tệp cấu hình chính của máy chủ và cho phép bạn tùy chỉnh cách máy chủ hoạt động cũng như cách người dùng tương tác với phiên bản của bạn.

| Tên             | Mô tả                                              |
| --------------- | -------------------------------------------------- |
| `overleaf.rc`   | Tệp cấu hình chính ở cấp cao nhất.                 |
| `variables.env` | Các biến môi trường được nạp vào container Docker. |
| `phiên bản`     | Phiên bản của image Docker để sử dụng.             |

{% hint style="info" %}
Hiện tại, chỉ cần biết rằng các tệp này tồn tại và bạn có thể tìm chúng ở đâu là đủ. Sau này trong tài liệu, chúng ta sẽ đi qua từng tệp chi tiết hơn và giải thích cách bạn có thể tùy chỉnh phiên bản của mình bằng chúng. Nếu bạn muốn bỏ qua phần này, bạn có thể xem phần phân tích đầy đủ về các tệp cấu hình này trên [trang Tệp và vị trí](/on-premises/vi/cau-hinh/overleaf-toolkit/files-and-locations.md).
{% endhint %}


---

# 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://ayakaleaf-pro.ayaka.space/on-premises/vi/cai-dat/using-the-toolkit/3.-initialize-the-configuration.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.
