store plaintext secret key in .env, hash at startup
This commit is contained in:
@@ -11,5 +11,5 @@ POSTGRES_USER="postgres"
|
||||
POSTGRES_PASSWORD="postgres"
|
||||
# TOKEN_LIFETIME in minutes
|
||||
TOKEN_LIFETIME=600
|
||||
# Secret key for registration (bcrypt hash, client sends plaintext)
|
||||
REGISTRATION_SECRET_KEY=$2a$10$mSo1MvV6U7GazfxceLFDl.gBNPm6lnjClWYsFQesx0SalObvBLIF6
|
||||
# Secret key for registration (plaintext, hashed with bcrypt at startup)
|
||||
REGISTRATION_SECRET_KEY=FtracKer*1405.
|
||||
Reference in New Issue
Block a user