docs: document NEXT_SERVER_ACTIONS_ENCRYPTION_KEY requirement

Signed-off-by: Andrew Leng <work@Andrews-MacBook-Air.local>
This commit is contained in:
tennisleng 2025-11-08 15:21:49 -05:00
parent 03c892aac0
commit 3911bb0852
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -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