Added a warning to change the JWT secret key.

This commit is contained in:
Rik Heijmann 2025-02-15 21:16:09 +01:00
parent 96f8e9b534
commit 5d49d7e801
3 changed files with 5 additions and 3 deletions

View File

@ -78,4 +78,4 @@ SERVER_COMPRESSION_LEVEL=6
# ==============================
# JWT secret key.
JWT_SECRET_KEY="fgr4fe34w2rfTwfe3444234edfewfw4e#f$#wferg23w2DFSdf"
JWT_SECRET_KEY="Change me!"

View File

@ -218,6 +218,8 @@ cargo run --release
### ⚙️ Configuration
Create a .env file in the root of the project or configure the application using environment variables.
Make sure to change the `JWT_SECRET_KEY`.
```env
# ==============================
# ⚙️ GENERAL CONFIGURATION
@ -299,5 +301,5 @@ SERVER_COMPRESSION_LEVEL=6
# ==============================
# JWT secret key.
JWT_SECRET_KEY="fgr4fe34w2rfTwfe3444234edfewfw4e#f$#wferg23w2DFSdf"
JWT_SECRET_KEY="Change me!"
```

View File

@ -25,7 +25,7 @@ services:
- SERVER_RATE_LIMIT_PERIOD=${SERVER_RATE_LIMIT_PERIOD:-1}
- SERVER_COMPRESSION_ENABLED=${SERVER_COMPRESSION_ENABLED:-true}
- SERVER_COMPRESSION_LEVEL=${SERVER_COMPRESSION_LEVEL:-6}
- JWT_SECRET_KEY=${JWT_SECRET_KEY:-fgr4fe34w2rfTwfe3444234edfewfw4e#f$#wferg23w2DFSdf} #VERY important to change this!
- JWT_SECRET_KEY=${JWT_SECRET_KEY:-Change me!} #VERY important to change this!
depends_on:
- db # Ensure the database is up before the app
volumes: