> For the complete documentation index, see [llms.txt](https://alethio.gitbook.io/memento/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alethio.gitbook.io/memento/introduction/configuration.md).

# Configuration

{% hint style="warning" %}
For the initial setup, we recommend modifying the config file directly since the dashboard might not be accessible before Memento is properly configured.
{% endhint %}

## **Via config file / command line arguments**

Please refer to [config.sample.yml](https://github.com/Alethio/memento/blob/master/config-sample.yml) for a list of available configuration parameters.

All the options in the config file have a corresponding flag represented by the the tree elements concatenated with a `.` (dot), for example:

```
db:
  host: localhost
# transforms into "--db.host=localhost"

feature:
  lag:
    enabled: true
# transforms into "--feature.lag.enabled=true"
```

The following configuration options are only available through ENV variables.

```
# redis password
REDIS_PASSWORD

# database password
PG_PASSWORD
```

##

## **Via dashboard**

> Note: Memento has to be running in order to access the dashboard & the [config-management feature](https://github.com/Alethio/memento/blob/master/config-sample.yml#L18) should be enabled.

1. Go to `http://localhost:3000/config` (by default; if you configured a different port, use that one)
2. Modify whatever you need and click "Save & restart"
3. Memento will exit in order to apply changes
   1. if you're running with the default docker-compose, it will restart automatically
   2. if you're manually running Memento via the executable, you'll have to start it again
4. Done
