Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,24 @@ Create an `.env` file with the following:
DATABASE_URL=connection-url
```

If you are running Umami v3 or newer you must also set the encryption key required by Next.js Server Actions:

```bash
NEXT_SERVER_ACTIONS_ENCRYPTION_KEY=your-64-character-hex-string
```

The connection URL format:

```bash
postgresql://username:mypassword@localhost:5432/mydb
```

You can generate a secure 64-character hex encryption key (32 random bytes) with:

```bash
openssl rand -hex 32
```

### Build the Application

```bash
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
DATABASE_URL: postgresql://umami:umami@db:5432/umami
DATABASE_TYPE: postgresql
APP_SECRET: replace-me-with-a-random-string
NEXT_SERVER_ACTIONS_ENCRYPTION_KEY: replace-me-with-a-64-character-hex-string
depends_on:
db:
condition: service_healthy
Expand Down