> For the complete documentation index, see [llms.txt](https://docs.overleaf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overleaf.com/on-premises/installation/using-the-toolkit/3.-initialize-the-configuration.md).

# 3. Initialize the configuration

## Initializing the configuration <a href="#initializing-the-configuration" id="initializing-the-configuration"></a>

Let's initialize our new server's configuration files with some sensible defaults by running the bundle `bin/init` script.

```bash
bin/init
```

This script will **not** overwrite any existing configuration files.

Now let's check the contents of the `config/` directory using the `ls` command:

```bash
ls config
```

If everything was successfully initialized you should see three configuration files `overleaf.rc`, `variables.env` and `version`. These are the main server configuration files and allow you to customize how your server operates and how your users interact with your instance.

| Name            | Description                                             |
| --------------- | ------------------------------------------------------- |
| `overleaf.rc`   | The main top-level configuration file.                  |
| `variables.env` | Environment variables loaded into the Docker container. |
| `version`       | The version of the Docker image to use.                 |

{% hint style="info" %}
For now, it's enough to know that these files exist and where you can find them. Later in the documentation we'll go through each of the files in more detail and explain how you can customize your instance using them. If you want to skip ahead you can see a full breakdown of these configuration files on the [Files and locations page](/on-premises/configuration/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://docs.overleaf.com/on-premises/installation/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.
