mirror of
https://github.com/kristoferssolo/Axium.git
synced 2025-10-21 16:00:34 +00:00
Added a warning to change the JWT secret key.
This commit is contained in:
parent
96f8e9b534
commit
5d49d7e801
@ -78,4 +78,4 @@ SERVER_COMPRESSION_LEVEL=6
|
|||||||
# ==============================
|
# ==============================
|
||||||
|
|
||||||
# JWT secret key.
|
# JWT secret key.
|
||||||
JWT_SECRET_KEY="fgr4fe34w2rfTwfe3444234edfewfw4e#f$#wferg23w2DFSdf"
|
JWT_SECRET_KEY="Change me!"
|
||||||
@ -218,6 +218,8 @@ cargo run --release
|
|||||||
### ⚙️ Configuration
|
### ⚙️ Configuration
|
||||||
Create a .env file in the root of the project or configure the application using environment variables.
|
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
|
```env
|
||||||
# ==============================
|
# ==============================
|
||||||
# ⚙️ GENERAL CONFIGURATION
|
# ⚙️ GENERAL CONFIGURATION
|
||||||
@ -299,5 +301,5 @@ SERVER_COMPRESSION_LEVEL=6
|
|||||||
# ==============================
|
# ==============================
|
||||||
|
|
||||||
# JWT secret key.
|
# JWT secret key.
|
||||||
JWT_SECRET_KEY="fgr4fe34w2rfTwfe3444234edfewfw4e#f$#wferg23w2DFSdf"
|
JWT_SECRET_KEY="Change me!"
|
||||||
```
|
```
|
||||||
|
|||||||
@ -25,7 +25,7 @@ services:
|
|||||||
- SERVER_RATE_LIMIT_PERIOD=${SERVER_RATE_LIMIT_PERIOD:-1}
|
- SERVER_RATE_LIMIT_PERIOD=${SERVER_RATE_LIMIT_PERIOD:-1}
|
||||||
- SERVER_COMPRESSION_ENABLED=${SERVER_COMPRESSION_ENABLED:-true}
|
- SERVER_COMPRESSION_ENABLED=${SERVER_COMPRESSION_ENABLED:-true}
|
||||||
- SERVER_COMPRESSION_LEVEL=${SERVER_COMPRESSION_LEVEL:-6}
|
- 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:
|
depends_on:
|
||||||
- db # Ensure the database is up before the app
|
- db # Ensure the database is up before the app
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user