blob: 334ef90b2608281bfa6c1666d93dece9db1ebb66 [file] [log] [blame]
Xing Jinwen2b2dc8c2025-06-04 23:15:13 +08001redis:
2 host: localhost
3 port: 6379
4 database: 3
5spring:
6 web:
7 resources:
8 static-locations: file:uploads/
9 profiles:
10 active: test,caching,db
11 jpa:
12 properties:
13 hibernate:
14 ddl-auto: update
15 generate-ddl: true
16 hbm2ddl:
17 auto: update
18 data:
19 redis:
20 database: ${redis.database}
21 timeout: 3000
22 port: ${redis.port}
23 host: ${redis.host}
24 jedis:
25 pool:
26 max-idle: 8
27 min-idle: 2
28 max-active: 8
29 max-wait: -1
30 quartz:
31 job-store-type: jdbc
32 wait-for-jobs-to-complete-on-shutdown: true
33 overwrite-existing-jobs: true
34 jdbc:
35 initialize-schema: always
2081595154dba94ab2025-06-09 16:12:17 +080036 platform: mysql
Xing Jinwen2b2dc8c2025-06-04 23:15:13 +080037 properties:
38 org:
39 quartz:
40 scheduler:
41 instanceName: sapling_scheduler
42 instanceId: AUTO
43 jobStore:
44 class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
45 driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
46 tablePrefix: QRTZ_
47 useProperties: false
48 clusterCheckinInterval: 10000
49 isClustered: true
2081595154dba94ab2025-06-09 16:12:17 +080050 dataSource: myDS
Xing Jinwen2b2dc8c2025-06-04 23:15:13 +080051 threadPool:
52 class: org.quartz.simpl.SimpleThreadPool
53 threadCount: 10
54 threadPriority: 5
55 threadsInheritContextClassLoaderOfInitializingThread: true
2081595154dba94ab2025-06-09 16:12:17 +080056 dataSource:
57 myDS:
58 provider: hikaricp
59 driver: ${spring.datasource.driver-class-name}
60 URL: ${spring.datasource.url}
61 user: ${spring.datasource.username}
62 password: ${spring.datasource.password}
63 maxConnections: 5
64 validationQuery: select 1
Xing Jinwen2b2dc8c2025-06-04 23:15:13 +080065 servlet:
66 multipart:
67 enabled: true
68 max-request-size: 20MB
69 max-file-size: 20MB
70server:
71 port: 8081
72 servlet:
73 context-path: /api
74sa-token:
75 token-name: sapling-token
76 timeout: 2592000
77 activity-timeout: -1
78 is-concurrent: true
79 is-share: false
80 token-style: random-128
20815951543945aab2025-06-05 13:48:37 +080081
Xing Jinwen9d585b32025-06-08 03:08:53 +080082pt:
83 # 分享率配置
84 share-ratio:
85 download-disable-ratio: 0.3 # 低于此值禁止下载
86 vip-upgrade-ratio: 2.0 # 高于此值自动升级VIP
87 vip-downgrade-ratio: 1.0 # VIP用户低于此值降级
88 vip-download-factor: 0.9 # VIP下载系数
89 vip-upload-factor: 1.1 # VIP上传系数
90 auto-vip-upgrade: true # 是否自动升级VIP
91 normal-group-id: 1 # 普通用户组ID
92 vip-group-id: 2 # VIP用户组ID
93
94 # Tracker配置
95 tracker:
96 base-url: http://localhost:8081/api # tracker基础URL
97 announce-interval-min: 900 # 最小announce间隔(秒)
98 announce-interval-max: 2700 # 最大announce间隔(秒)