Refactor: Improve JWT secret generation instructions
Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
co-authored by
mathieumoran1
parent
1f98a1a24a
commit
4fe8ad84ab
@@ -32,7 +32,7 @@ Add this to your `.env` (**required**: `MONGO_URI`, `JWT_SECRET`):
|
||||
```bash
|
||||
# required
|
||||
MONGO_URI=mongodb://127.0.0.1:27017/oscars-pool
|
||||
JWT_SECRET=change-me
|
||||
JWT_SECRET=replace-with-a-random-string
|
||||
|
||||
# optional
|
||||
DOG_NAMES=woof,WOOF,Woof
|
||||
@@ -41,6 +41,12 @@ GITHUB_OWNER=quoije
|
||||
GITHUB_REPO=oscars-pool
|
||||
```
|
||||
|
||||
Generate a good `JWT_SECRET`:
|
||||
|
||||
```bash
|
||||
openssl rand -hex 32
|
||||
```
|
||||
|
||||
## Database (MongoDB)
|
||||
This app uses **MongoDB** via Mongoose. Provide a connection string in `MONGO_URI`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user