mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-22 15:31:20 +08:00
57 lines
2.0 KiB
Properties
57 lines
2.0 KiB
Properties
# 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}
|
|
# Password strength: LOW, MEDIUM or HIGH
|
|
app.password.strength=${PASSWORD_STRENGTH:LOW}
|
|
|
|
# Post publish mode: DIRECT or REVIEW
|
|
app.post.publish-mode=${POST_PUBLISH_MODE:DIRECT}
|
|
|
|
# User register mode: DIRECT or WHITELIST
|
|
app.register.mode=${REGISTER_MODE:WHITELIST}
|
|
|
|
# Image upload configuration
|
|
app.upload.check-type=${UPLOAD_CHECK_TYPE:true}
|
|
app.upload.max-size=${UPLOAD_MAX_SIZE:5242880}
|
|
|
|
# Default list size for user posts and replies
|
|
app.user.posts-limit=${USER_POSTS_LIMIT:10}
|
|
app.user.replies-limit=${USER_REPLIES_LIMIT:50}
|
|
# Length of extracted snippets for posts and search (-1 to disable truncation)
|
|
app.snippet-length=${SNIPPET_LENGTH:50}
|
|
|
|
# Captcha configuration
|
|
app.captcha.enabled=${CAPTCHA_ENABLED:false}
|
|
recaptcha.secret-key=${RECAPTCHA_SECRET_KEY:}
|
|
app.captcha.register-enabled=${CAPTCHA_REGISTER_ENABLED:false}
|
|
app.captcha.login-enabled=${CAPTCHA_LOGIN_ENABLED:false}
|
|
app.captcha.post-enabled=${CAPTCHA_POST_ENABLED:false}
|
|
app.captcha.comment-enabled=${CAPTCHA_COMMENT_ENABLED:false}
|
|
|
|
# ========= 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=${: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: ...
|
|
|
|
# Google OAuth configuration
|
|
google.client-id=${GOOGLE_CLIENT_ID:}
|
|
# OpenAI configuration
|
|
openai.api-key=${OPENAI_API_KEY:}
|
|
openai.model=${OPENAI_MODEL:gpt-4o}
|
|
# AI markdown format usage limit per user per day (-1 for unlimited)
|
|
app.ai.format-limit=${AI_FORMAT_LIMIT:3}
|