83 lines
2.4 KiB
YAML
83 lines
2.4 KiB
YAML
app:
|
||
ddl-auto: create # valid values: none, validate, update, create, create-drop
|
||
# 应用验证码配置
|
||
verification:
|
||
code-length: 6 # 验证码长度(6位数字)
|
||
expiration-minutes: 5 # 验证码过期时间(5分钟)
|
||
resend-interval-seconds: 60 # 重发间隔(60秒)
|
||
server:
|
||
port: 8080
|
||
|
||
spring:
|
||
application:
|
||
name: xianyu-free
|
||
|
||
datasource:
|
||
driver-class-name: org.sqlite.JDBC
|
||
url: jdbc:sqlite:db/xianyu_data.db
|
||
username:
|
||
password:
|
||
|
||
sql:
|
||
init:
|
||
mode: never
|
||
|
||
jpa:
|
||
database-platform: org.hibernate.community.dialect.SQLiteDialect
|
||
hibernate:
|
||
ddl-auto: ${app.ddl-auto:update}
|
||
show-sql: true # Set to false to disable SQL logging
|
||
open-in-view: false # 生产环境最佳实践,避免懒加载问题
|
||
properties:
|
||
hibernate:
|
||
format_sql: true # Set to false to disable SQL formatting
|
||
|
||
servlet:
|
||
multipart:
|
||
max-file-size: 10MB
|
||
max-request-size: 10MB
|
||
|
||
logging:
|
||
level:
|
||
root: INFO
|
||
top.biwin.xianyu: DEBUG
|
||
org.springframework.security: DEBUG
|
||
org.hibernate.SQL: INFO # Ensure Hibernate SQL logging is not set to DEBUG/TRACE
|
||
org.hibernate.type.descriptor.sql: INFO # Ensure Hibernate parameter logging is not set to DEBUG/TRACE
|
||
file:
|
||
name: logs/backend-java.log
|
||
|
||
# JWT 配置
|
||
jwt:
|
||
# JWT 密钥(生产环境请使用环境变量 JWT_SECRET)
|
||
# 建议使用至少 256 位的随机字符串
|
||
secret: ${JWT_SECRET:xianyu-freedom-default-secret-key-please-change-in-production-environment-2026}
|
||
|
||
# Access Token 过期时间(毫秒)
|
||
# 15 分钟 = 900,000 毫秒
|
||
access-token-expiration: 900000
|
||
|
||
# Refresh Token 过期时间(毫秒)
|
||
# 7 天 = 604,800,000 毫秒
|
||
refresh-token-expiration: 604800000
|
||
|
||
goofish:
|
||
api:
|
||
hostUrl: https://h5api.m.goofish.com/h5/
|
||
appKey: 34839810
|
||
|
||
assistant:
|
||
static:
|
||
uploads:
|
||
images: static/uploads/images/
|
||
|
||
browser:
|
||
# 使用已安装的浏览器,否则系统会尝试下载 playwright 绑定版本的浏览器,如果设置为 false,则系统首次启动会比较久
|
||
use-installed-browser: true
|
||
# chrome 浏览器软件安装位置
|
||
location: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
|
||
# 浏览器登录状态数据存储目录
|
||
persistence-data: browser_data/
|
||
# 浏览器 UA
|
||
ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0'
|