blob: 21f409bf43cf0843f0a502f3945ff9c4289d949a [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
36 properties:
37 org:
38 quartz:
39 scheduler:
40 instanceName: sapling_scheduler
41 instanceId: AUTO
42 jobStore:
43 class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
44 driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
45 tablePrefix: QRTZ_
46 useProperties: false
47 clusterCheckinInterval: 10000
48 isClustered: true
49 threadPool:
50 class: org.quartz.simpl.SimpleThreadPool
51 threadCount: 10
52 threadPriority: 5
53 threadsInheritContextClassLoaderOfInitializingThread: true
54 servlet:
55 multipart:
56 enabled: true
57 max-request-size: 20MB
58 max-file-size: 20MB
59server:
60 port: 8081
61 servlet:
62 context-path: /api
63sa-token:
64 token-name: sapling-token
65 timeout: 2592000
66 activity-timeout: -1
67 is-concurrent: true
68 is-share: false
69 token-style: random-128
20815951543945aab2025-06-05 13:48:37 +080070
Xing Jinwen9d585b32025-06-08 03:08:53 +080071pt:
72 # 分享率配置
73 share-ratio:
74 download-disable-ratio: 0.3 # 低于此值禁止下载
75 vip-upgrade-ratio: 2.0 # 高于此值自动升级VIP
76 vip-downgrade-ratio: 1.0 # VIP用户低于此值降级
77 vip-download-factor: 0.9 # VIP下载系数
78 vip-upload-factor: 1.1 # VIP上传系数
79 auto-vip-upgrade: true # 是否自动升级VIP
80 normal-group-id: 1 # 普通用户组ID
81 vip-group-id: 2 # VIP用户组ID
82
83 # Tracker配置
84 tracker:
85 base-url: http://localhost:8081/api # tracker基础URL
86 announce-interval-min: 900 # 最小announce间隔(秒)
87 announce-interval-max: 2700 # 最大announce间隔(秒)