Skip to content

Commit

Permalink
add readme section for Postgres pool variables (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Mar 6, 2024
1 parent 4cd2433 commit d3918ad
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,17 @@ It use Keyv as a simple K/V store so you can use the database of your choice.
| `STORAGE_TTL` | Time to live for data | null |
| `LOG_LEVEL` | Log level (`debug`, `verbose`, `log`, `warn`, `error`) | `warn` |
| `BODY_LIMIT` | Payload size limit for scenes or images | `50mb` |

### Env Variables for Postgres
For setting postgres pool variables, a few code adjustment have to be made in the `storage.service.ts`:
```typescript
const store = new (require('@keyv/postgres'))({
uri,
max: 1
})

const keyv = new Keyv({
store,
ttl,
});
```

0 comments on commit d3918ad

Please sign in to comment.