Skip to content

Commit

Permalink
doc: add hint for PASETO_KEY generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed Nov 11, 2022
1 parent 0563de9 commit 08a8ae8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ You can configure the API with environment variables:
Supports PostgreSQL and SQLite.

* `PASETO_KEY` (optional): Base64 encoded 32 bytes key used to check the
[PASETO](https://paseto.io/) authentication tokens.
If not set the API will run in read only mode.
[PASETO](https://paseto.io/) authentication tokens. You can generate it with
`head -c3 /dev/urandom | base64`.

If not set, the API will run in read only mode.

* `ENVIRONMENT` (optional): possible values `test`, `development`, `production`.
Default `production`.
Expand Down

0 comments on commit 08a8ae8

Please sign in to comment.