# Configuration Directives

The basic configuration object has 1 method for application configuration called `configure()` where you will place all your configuration directives and settings:

{% code title="ColdBox.cfc" %}

```javascript
/**
* A simple CFC that configures a ColdBox application.  You can even extend, compose, strategize and do your OO goodness.
*/
component{

    // Mandatory configuration method
    function configure(){
        coldbox = {
          
        };
    }
    
}
```

{% endcode %}

## Directives

Inside of this configuration method you will place several core and third-party configuration structures that can alter your application settings and behavior. Below are the core directives you can define:

| Directive                                                                                                         | Type   | Description                                                                                                                                                                                                                              |
| ----------------------------------------------------------------------------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [cachebox](/getting-started/configuration/coldbox.cfc/configuration-directives/cachebox.md)                       | struct | An optional structure used to configure CacheBox. If not setup the framework will use its default configuration found in `/coldbox/system/web/config/CacheBox.cfc`                                                                       |
| [coldbox](/getting-started/configuration/coldbox.cfc/configuration-directives/coldbox.md)                         | struct | The main coldbox directives structure that holds all the coldbox settings.                                                                                                                                                               |
| [conventions](/getting-started/configuration/coldbox.cfc/configuration-directives/conventions.md)                 | struct | A structure where you will configure the application convention names                                                                                                                                                                    |
| [environments](/getting-started/configuration/coldbox.cfc/configuration-directives/environments.md)               | struct | A structure where you will configure environment detection patterns                                                                                                                                                                      |
| [flash](/getting-started/configuration/coldbox.cfc/configuration-directives/flash.md)                             | struct | A structure where you will configure the [FlashRAM](https://github.com/ortus/coldbox-platform-documentation/tree/24d3f3d16693b36ca41bf5ce0329c6ff33316ef0/full/configuration/coldboxcfc/configuration_directives/flash_ram/flash_ram.md) |
| [interceptorSettings](/getting-started/configuration/coldbox.cfc/configuration-directives/interceptorsettings.md) | struct | An optional structure to configure application wide interceptor behavior                                                                                                                                                                 |
| [interceptors](/getting-started/configuration/coldbox.cfc/configuration-directives/interceptors.md)               | array  | An optional array of interceptor declarations for your application                                                                                                                                                                       |
| [layoutSettings](/getting-started/configuration/coldbox.cfc/configuration-directives/layoutsettings.md)           | struct | A structure where you define how the layout manager behaves in your application                                                                                                                                                          |
| [layouts](/getting-started/configuration/coldbox.cfc/configuration-directives/layouts.md)                         | array  | An array of layout declarations for implicit layout-view-folder pairings in your application                                                                                                                                             |
| [logbox](/getting-started/configuration/coldbox.cfc/configuration-directives/logbox.md)                           | struct | An optional structure to configure the logging and messaging in your application via LogBox                                                                                                                                              |
| [modules](/getting-started/configuration/coldbox.cfc/configuration-directives/modules.md)                         | struct | An optional structure to configure application wide module behavior                                                                                                                                                                      |
| [moduleSettings](/getting-started/configuration/coldbox.cfc/configuration-directives/modulesettings.md)           | struct | An optional structure to configure individual modules installed in your application.                                                                                                                                                     |
| [settings](/getting-started/configuration/coldbox.cfc/configuration-directives/settings.md)                       | struct | A structure where you can put your own application settings                                                                                                                                                                              |
| [wirebox](/getting-started/configuration/coldbox.cfc/configuration-directives/wirebox.md)                         | struct | An optional structure used to define how WireBox is loaded                                                                                                                                                                               |


---

# 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://coldbox.ortusbooks.com/getting-started/configuration/coldbox.cfc/configuration-directives.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.
