# Configuration

### Detach the configuration and start using your own

Each configuration file is optional, if not given, Twake will fallback to default configuration.

#### Backend configuration

You can find an example of Twake configuration (default configuration) here: <https://github.com/TwakeApp/Twake/blob/main/twake/backend/core/app/Configuration/Parameters.php.dist>

Copy the content of this file and put it in `[docker-compose.yml location]/configuration/backend/Parameters.php`

> **Tip:** you can put a 'cert' directory with apns.cert keys (mobile push notifications) beside the Parameters.php file.

#### Frontend configuration

You can find an example of Twake configuration (default configuration) here: <https://github.com/TwakeApp/Twake/blob/main/twake/frontend/src/app/environment/environment.ts.dist>

Copy the content of this file and put it in `[docker-compose.yml location]/configuration/frontend/environment.ts`

#### After a configuration change

Each time you change the configuration, restart your docker container like this:&#x20;

```
docker-compose restart nginx node php
docker-compose exec nginx yarn build #If you have custom frontend configuration
```

{% hint style="danger" %}
Warning, if you are using ScyllaDB (mandatory for any version before 2022) you must make sure ScyllaDB is started before to start the node container.

If your server is completely stoped you can use this command to make sure everything starts well:

&#x20;`docker-compose up -d scylladb; sleep 120; docker-compose up -d`
{% endhint %}


---

# 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://doc.twake.app/gettingstarted/configuration.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.
