From fb616b724c60105903505fae13d655cd6cafe3f2 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 1 Jul 2025 11:57:25 +0800 Subject: [PATCH] feat: update config --- src/main/resources/application.properties | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b59558ad2..50bce4d82 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,14 +1,23 @@ +# for mysql spring.datasource.url=${MYSQL_URL:jdbc:mysql://localhost:3306/openisle} spring.datasource.username=${MYSQL_USER:root} spring.datasource.password=${MYSQL_PASSWORD:password} spring.jpa.hibernate.ddl-auto=update +# for jwt +app.jwt.secret=${JWT_SECRET:ChangeThisSecretKeyForJwt} +app.jwt.expiration=${JWT_EXPIRATION:86400000} + +# ========= Optional ========= +# for resend email send service, you can improve your service by yourself resend.api.key=${RESEND_API_KEY:} +# your email services: ... + +# for tencent cloud image upload service, you can improve your service by yourself cos.base-url=${COS_BASE_URL:https://example.com} cos.secret-id=${COS_SECRET_ID:} cos.secret-key=${COS_SECRET_KEY:} cos.region=${COS_REGION:ap-guangzhou} cos.bucket-name=${COS_BUCKET_NAME:} +# your image upload services: ... -app.jwt.secret=${JWT_SECRET:ChangeThisSecretKeyForJwt} -app.jwt.expiration=${JWT_EXPIRATION:86400000}