> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-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` script.

{% code title="Chạy quá trình khởi tạo" %}

```
bin/init
```

{% endcode %}

Script này sẽ **không** ghi đè lên bất kỳ tệp cấu hình hiện có nào.

Bây giờ hãy kiểm tra nội dung của `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 máy chủ chính và cho phép bạn tùy chỉnh cách máy chủ của bạn hoạt động và 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 tải vào vùng chứa Docker. |
| `phiên bản`     | Phiên bản của ảnh 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à nơi bạn có thể tìm thấy chúng là đủ. Sau này trong tài liệu, chúng tôi 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 xem trước, bạn có thể xem 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://overleaf-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.
