> ## Documentation Index
> Fetch the complete documentation index at: https://home-app.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

> Environment variables, the data directory and secret key handling.

## Environment variables

| Variable | Default | Purpose |
| - | - | - |
| `HOME_DATA_DIR` | `/data` in the image, `./data` in dev | Everything Home owns: `home.db`, `secret.key`, `projects/`, `backups/`, `uploads/`, `deployments/`, `cache/` |
| `HOME_HOST_DATA_DIR` | unset | Host-side path of the `HOME_DATA_DIR` bind mount. **Required in containers** so backup and file helpers can mount host directories |
| `HOME_BACKUP_VOLUME` | `$HOME_DATA_DIR/backups` | Host path mounted into helper containers as `/backup`. Archives always land under `HOME_DATA_DIR/backups/` inside Home |
| `HOME_BACKUP_IMAGE` | `alpine:3.20` | Image used for volume backup/restore and volume file browsing |
| `HOME_BACKUP_RETENTION` | `10` | Most recent archives kept per stack after each backup run |
| `DOCKER_SOCKET` | `/var/run/docker.sock` | Docker socket (`//./pipe/docker_engine` on Windows dev) |
| `HOME_SECRET_KEY` | generated | base64 of 32 bytes for encrypting secrets at rest. If unset, `HOME_DATA_DIR/secret.key` is created — back it up |
| `HOME_SECURE_COOKIES` | auto | `true` forces `Secure` on session cookies; otherwise inferred from `x-forwarded-proto`/HTTPS |
| `HOME_MCP_TOKEN` | unset | Bearer token for `POST /api/mcp` — required for non-browser MCP clients |
| `HOME_DEMO_MODE` | unset | `true` = in-memory mock Docker client with seeded fixtures |
| `HOME_SCHEDULER` | on | `off` disables the in-process cron scheduler |
| `HOME_TEMPLATES_OFFLINE` | unset | `true` = bundled template snapshot only, no network fetches |

## The data directory

```
data/
├── home.db            # SQLite — users, sessions, projects, stacks,
│                      #   integrations (secrets encrypted), domains,
│                      #   schedules, backups, deployments, notifications
├── secret.key         # AES-256-GCM key (0600). Lose it = lose your secrets.
├── projects/          # Managed stacks: <project>/<stack>/compose.yaml + .env
├── backups/           # <project>/<stack>/<timestamp>.tar.gz + manifest.json
├── uploads/           # Wallpaper and logo files
├── deployments/       # One log file per deployment
└── cache/             # Template catalog + image-update caches (safe to delete)
```

> [!WARNING]
>
> `secret.key` encrypts every integration token, webhook secret and registry
> credential Home stores. **Back it up alongside `home.db`** — a database
> restored without its key can be read, but the secrets inside can't be
> decrypted. Prefer setting `HOME_SECRET_KEY` yourself and storing it in a
> password manager.

## Reverse proxy / HTTPS

Home works on plain HTTP for LAN use. In front of a TLS-terminating proxy,
forward `x-forwarded-proto` so `Secure` cookies and passkey origins are
inferred correctly — or set `HOME_SECURE_COOKIES=true` explicitly.

> [!NOTE]
>
> Passkeys need a **secure context**: HTTPS or `localhost`. Over
> `http://<lan-ip>` the passkey button doesn't render and password sign-in is
> the fallback.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.