feat: 实现演示验证码和令牌轮换
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
# Copy this file to .env and replace test-only values for non-test environments.
|
||||
DATABASE_URL=postgresql://drift:drift_test_only@127.0.0.1:55432/drift_bottle_test?schema=public
|
||||
REDIS_URL=redis://127.0.0.1:56379
|
||||
WEB_ORIGIN=http://localhost:3000
|
||||
PHONE_ENCRYPTION_KEY=<base64-encoded-exactly-32-byte-key>
|
||||
PHONE_HMAC_KEY=<independent-at-least-32-byte-secret>
|
||||
VERIFICATION_CODE_HMAC_KEY=<independent-at-least-32-byte-secret>
|
||||
REFRESH_TOKEN_HMAC_KEY=<independent-at-least-32-byte-secret>
|
||||
JWT_SECRET=<at-least-32-byte-secret>
|
||||
JWT_ISSUER=drift-api
|
||||
JWT_AUDIENCE=drift-web
|
||||
ACCESS_TOKEN_TTL_SECONDS=900
|
||||
REFRESH_TOKEN_TTL_SECONDS=2592000
|
||||
SMS_CODE_TTL_SECONDS=300
|
||||
REDIS_KEY_PREFIX=drift:auth:
|
||||
TRUST_PROXY=false
|
||||
|
||||
Reference in New Issue
Block a user