---
title: The config file
project: OpenFiles
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/openfiles/1-0/reference/config/
updated: 2026-11-19T07:45:44.888Z
---

# The config file

> The settings in the config file that you may change.

The file `config` in the OpenFiles folder holds the start settings, one per line, as `key : value`. Lines that start with `//` are comments. Restart OpenFiles after you change it.

The file as it comes:

```text
name                  : OpenFiles
app                   : openfiles
icon                  : ti ti-copy
cdn                   : https://cdn.componentator.com
$api                  : /api/
$insecure             : true
// database              : postgres://user:password@localhost/database
```

## Settings you may change

| Key | Meaning |
|---|---|
| `name` | The app name in the header and browser tab. A name saved in [Settings](../../guides/settings/) replaces it. |
| `database` | A PostgreSQL connection that indexes the uploaded files. See [Index files in PostgreSQL](../../guides/postgresql/). |

Leave the other keys as they are: the admin interface depends on them.

The port is not in this file. Pass it on the command line, for example `node index.js 8080`. See [Install from source](../../guides/install-source/).
