Skip to content

Commit 5485126

Browse files
Instructions for generating and verifying secrets
1 parent 138ccc9 commit 5485126

File tree

2 files changed

+288
-30
lines changed

2 files changed

+288
-30
lines changed

workflow/3-creating-postgresql.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,14 @@ PROJECT_ID="your-project-id"
136136
doctl projects resources assign $PROJECT_ID --resource="do:droplet:$DROPLET_ID"
137137
```
138138

139-
Add the droplet details to your `.env` file:
139+
Generate secure keys for the PostgREST user and JWT secret:
140+
141+
```bash
142+
openssl rand -base64 24 # for POSTGREST_PASSWORD
143+
openssl rand -base64 32 # for POSTGREST_JWT_SECRET
144+
```
145+
146+
Use your file editing tool to add the droplet and PostgREST user details to your `.env` file:
140147

141148
```bash
142149
# PostgREST droplet details

0 commit comments

Comments
 (0)