| redis: |
| host: localhost |
| port: 6379 |
| database: 3 |
| spring: |
| web: |
| resources: |
| static-locations: file:uploads/ |
| profiles: |
| active: test,caching,db |
| jpa: |
| properties: |
| hibernate: |
| ddl-auto: update |
| generate-ddl: true |
| hbm2ddl: |
| auto: update |
| data: |
| redis: |
| database: ${redis.database} |
| timeout: 3000 |
| port: ${redis.port} |
| host: ${redis.host} |
| jedis: |
| pool: |
| max-idle: 8 |
| min-idle: 2 |
| max-active: 8 |
| max-wait: -1 |
| quartz: |
| job-store-type: jdbc |
| wait-for-jobs-to-complete-on-shutdown: true |
| overwrite-existing-jobs: true |
| jdbc: |
| initialize-schema: always |
| platform: mysql |
| properties: |
| org: |
| quartz: |
| scheduler: |
| instanceName: sapling_scheduler |
| instanceId: AUTO |
| jobStore: |
| class: org.springframework.scheduling.quartz.LocalDataSourceJobStore |
| driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
| tablePrefix: QRTZ_ |
| useProperties: false |
| clusterCheckinInterval: 10000 |
| isClustered: true |
| dataSource: myDS |
| threadPool: |
| class: org.quartz.simpl.SimpleThreadPool |
| threadCount: 10 |
| threadPriority: 5 |
| threadsInheritContextClassLoaderOfInitializingThread: true |
| dataSource: |
| myDS: |
| provider: hikaricp |
| driver: ${spring.datasource.driver-class-name} |
| URL: ${spring.datasource.url} |
| user: ${spring.datasource.username} |
| password: ${spring.datasource.password} |
| maxConnections: 5 |
| validationQuery: select 1 |
| servlet: |
| multipart: |
| enabled: true |
| max-request-size: 20MB |
| max-file-size: 20MB |
| server: |
| port: 8081 |
| servlet: |
| context-path: /api |
| sa-token: |
| token-name: sapling-token |
| timeout: 2592000 |
| activity-timeout: -1 |
| is-concurrent: true |
| is-share: false |
| token-style: random-128 |
| |
| pt: |
| # 分享率配置 |
| share-ratio: |
| download-disable-ratio: 0.3 # 低于此值禁止下载 |
| vip-upgrade-ratio: 2.0 # 高于此值自动升级VIP |
| vip-downgrade-ratio: 1.0 # VIP用户低于此值降级 |
| vip-download-factor: 0.9 # VIP下载系数 |
| vip-upload-factor: 1.1 # VIP上传系数 |
| auto-vip-upgrade: true # 是否自动升级VIP |
| normal-group-id: 1 # 普通用户组ID |
| vip-group-id: 2 # VIP用户组ID |
| |
| # Tracker配置 |
| tracker: |
| base-url: http://localhost:8081/api # tracker基础URL |
| announce-interval-min: 900 # 最小announce间隔(秒) |
| announce-interval-max: 2700 # 最大announce间隔(秒) |