# Configuration

The config plugin is an essential component in RoadRunner, responsible for parsing configuration files and environment variables. It serves as a central hub for managing configurations for the plugins and RoadRunner server itself.

## Configuration File Structure

The RoadRunner configuration file should be formatted using **YAML** or **JSON**. Each configuration file must include a `version` at the top, indicating the format's version. The currently supported configuration version is **version 3**.

{% hint style="warning" %}
The configuration version is not synonymous with the RoadRunner (RR) version. The configuration version and RR version have separate versioning systems.
{% endhint %}

**Example of a YAML configuration file:**

{% code title=".rr.yaml" %}

```yaml
version: '3'

# ... other config values
```

{% endcode %}

{% hint style="warning" %}
Version numbers are strings, not numbers. For example, `version: "3"` is correct, but `version: 3` is not.
{% endhint %}

## Tips

1. By default, `.rr.yaml` used as the configuration, located in the same directory with RR binary.


---

# 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://docs.roadrunner.dev/docs/plugins/config.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.
