> 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/zh-tw/an-zhuang/using-the-toolkit/3.-initialize-the-configuration.md).

# 3. 初始化設定

### 初始化設定 <a href="#initializing-the-configuration" id="initializing-the-configuration"></a>

讓我們透過執行 bundle 來以一些合理的預設值初始化新伺服器的設定檔 `bin/init` 指令碼。

{% code title="執行初始化" %}

```
bin/init
```

{% endcode %}

這個指令碼將會 **不要** 覆寫任何現有的設定檔。

現在讓我們檢查……的內容 `config/` 目錄中的 `ls` 指令：

{% code title="列出 config 目錄" %}

```
ls config
```

{% endcode %}

如果一切都已成功初始化，你應該會看到三個設定檔： `overleaf.rc`, `variables.env` 以及 `版本`。這些是主要的伺服器設定檔，可讓你自訂伺服器的運作方式以及使用者與你的執行個體互動的方式。

| 名稱              | 說明                   |
| --------------- | -------------------- |
| `overleaf.rc`   | 主要的頂層設定檔。            |
| `variables.env` | 載入到 Docker 容器中的環境變數。 |
| `版本`            | 要使用的 Docker 映像版本。    |

{% hint style="info" %}
目前只要知道這些檔案存在，以及你可以在哪裡找到它們就夠了。稍後在文件中，我們會更詳細地逐一介紹這些檔案，並說明你如何使用它們自訂你的執行個體。如果你想先往後跳，可以在以下位置查看這些設定檔的完整說明： [檔案與位置頁面](/on-premises/zh-tw/she-ding/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/zh-tw/an-zhuang/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.
