mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
docs: document NEXT_SERVER_ACTIONS_ENCRYPTION_KEY requirement
Signed-off-by: Andrew Leng <work@Andrews-MacBook-Air.local>
This commit is contained in:
parent
03c892aac0
commit
3911bb0852
2 changed files with 13 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue