# Configuration files

> configuration/<Package>.config holds a build system's settings, or your app's settings per region, environment and stage.

A project's `configuration/` folder holds one file per package, named after it. What a file holds depends on whose name it has.

## A build system's settings {#build-settings}

A file named after one of the project's build-dependencies, such as `configuration/JavaBuild.config`, sets that build system up. Each line is `key = value`, or a list:

```conf file=configuration/JavaBuild.config
java.release = 21
run.jvm-args = [-Xmx512m]
```

Each build system's keys are on its language's page: [Java](../languages/java.md#settings), [Kotlin](../languages/kotlin.md#settings), [Go](../languages/go.md#settings), [Python](../languages/python.md#settings), [Elixir](../languages/elixir.md#settings) and [your own scripts](../languages/custom.md#settings). A key it doesn't know is an error, and so is a file named after no package the project uses.

## Your app's settings {#runtime}

Any other file, such as `configuration/MyService.config`, holds what your app reads when it runs, for each place it runs. Each line names a region, an environment and a stage, with `*` for any:

```conf file=configuration/MyService.config
*.*.*.greeting = Hello
*.prod.*.greeting = Welcome
eu-west-1.prod.*.db.url = jdbc:postgresql://db.eu.example.com/shop
*.local.*.db.url = jdbc:postgresql://localhost/shop
```

The most specific line wins. A library's file gives defaults, which the app's own file replaces.

## Where it runs {#where}

| Where | Region, environment, stage |
|---|---|
| `plinto run` | `my-local-1`, `local`, `local` (change one with `--region`, `--env` or `--stage`) |
| tests | `my-local-1`, `test`, `test` |
| a deployment | the environment's **Instance** |

`plinto run` says which it runs as: `Running as region my-local-1, environment local, stage local`. The app finds the settings in the file `PLINTO_CONFIGURATION` names, and where it runs in `PLINTO_REGION`, `PLINTO_ENV` and `PLINTO_STAGE`.

- [Environments](../concepts/environments.md): regions, environments and stages
- [plinto.conf](plinto-conf.md): the project's own file
- [Languages](../languages/java.md): each build system's settings
