added refresh token
This commit is contained in:
@@ -30,27 +30,28 @@ spring:
|
||||
change-log: classpath:db/changelog/db.changelog-master.yaml
|
||||
|
||||
minio:
|
||||
endpoint: http://localhost:9010
|
||||
bucket: refound-images
|
||||
access-key: 59SWvKyRv7VZh4XT0p0H
|
||||
secret-key: uRIPejW6DwSTwdICwxXRA71VuZAAVE9EmHBq7B7K
|
||||
region: us-east-1 # MinIO не проверяет регион, но SDK требует значение
|
||||
endpoint: ${MINIO_ENDPOINT:http://localhost:9010}
|
||||
bucket: ${MINIO_BUCKET:refound-images}
|
||||
access-key: ${MINIO_ACCESS_KEY}
|
||||
secret-key: ${MINIO_SECRET_KEY}
|
||||
region: ${MINIO_REGION:us-east-1}
|
||||
|
||||
ai:
|
||||
url: http://localhost:8000
|
||||
url: ${AI_SERVICE_URL:http://localhost:8000}
|
||||
timeout: 5
|
||||
|
||||
retry:
|
||||
max-attempts: 3
|
||||
delay: 500
|
||||
multiplier: 2
|
||||
|
||||
file:
|
||||
upload-dir: uploads/
|
||||
|
||||
cache:
|
||||
ttl: 300
|
||||
|
||||
jwt:
|
||||
secret: mySuperSecretKeyForJwtTokenGenerationThatIsLongEnough2024!ReFound
|
||||
expiration: 86400000 # 24 hours in milliseconds
|
||||
secret: ${JWT_SECRET:mySuperSecretKeyForJwtTokenGenerationThatIsLongEnough2024!ReFound}
|
||||
access-expiration: ${JWT_ACCESS_EXPIRATION:900000} # 15 минут
|
||||
refresh-expiration: ${JWT_REFRESH_EXPIRATION:604800000} # 7 дней
|
||||
|
||||
app:
|
||||
cors:
|
||||
allowed-origins: ${CORS_ALLOWED_ORIGINS:https://refound.example.com,http://localhost:3000}
|
||||
Reference in New Issue
Block a user