Xing Jinwen | 2b2dc8c | 2025-06-04 23:15:13 +0800 | [diff] [blame] | 1 | redis: |
| 2 | host: localhost |
| 3 | port: 6379 |
| 4 | database: 3 |
| 5 | spring: |
| 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 |
2081595154 | dba94ab | 2025-06-09 16:12:17 +0800 | [diff] [blame^] | 36 | platform: mysql |
Xing Jinwen | 2b2dc8c | 2025-06-04 23:15:13 +0800 | [diff] [blame] | 37 | 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 |
2081595154 | dba94ab | 2025-06-09 16:12:17 +0800 | [diff] [blame^] | 50 | dataSource: myDS |
Xing Jinwen | 2b2dc8c | 2025-06-04 23:15:13 +0800 | [diff] [blame] | 51 | threadPool: |
| 52 | class: org.quartz.simpl.SimpleThreadPool |
| 53 | threadCount: 10 |
| 54 | threadPriority: 5 |
| 55 | threadsInheritContextClassLoaderOfInitializingThread: true |
2081595154 | dba94ab | 2025-06-09 16:12:17 +0800 | [diff] [blame^] | 56 | 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 Jinwen | 2b2dc8c | 2025-06-04 23:15:13 +0800 | [diff] [blame] | 65 | servlet: |
| 66 | multipart: |
| 67 | enabled: true |
| 68 | max-request-size: 20MB |
| 69 | max-file-size: 20MB |
| 70 | server: |
| 71 | port: 8081 |
| 72 | servlet: |
| 73 | context-path: /api |
| 74 | sa-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 |
2081595154 | 3945aab | 2025-06-05 13:48:37 +0800 | [diff] [blame] | 81 | |
Xing Jinwen | 9d585b3 | 2025-06-08 03:08:53 +0800 | [diff] [blame] | 82 | pt: |
| 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间隔(秒) |