mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
71 lines
1.9 KiB
YAML
71 lines
1.9 KiB
YAML
server:
|
|
port: 8081
|
|
servlet:
|
|
context-path: ''
|
|
tomcat:
|
|
max-threads: 20
|
|
compression:
|
|
enabled: true
|
|
|
|
spring:
|
|
h2:
|
|
console:
|
|
settings:
|
|
web-allow-others: true
|
|
path: /h2-console
|
|
enabled: false
|
|
datasource:
|
|
# 初始化数据导入
|
|
data: classpath*:db/data.sql
|
|
sql-script-encoding: utf-8
|
|
|
|
initialization-mode: always
|
|
continue-on-error: true
|
|
|
|
# h2 内存数据库 配置
|
|
driver-class-name: org.h2.Driver
|
|
url: jdbc:h2:~/.zfile/db/zfile
|
|
username: zfile
|
|
password: 123456
|
|
|
|
# MySQL 配置
|
|
# driver-class-name: com.mysql.jdbc.Driver
|
|
# url: jdbc:mysql://127.0.0.1:3306/zfile?characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
|
|
# username: root
|
|
# password: 123456
|
|
jackson:
|
|
date-format: yyyy-MM-dd HH:mm
|
|
time-zone: GMT+8
|
|
jpa:
|
|
hibernate:
|
|
ddl-auto: update
|
|
properties:
|
|
hibernate:
|
|
format_sql: false
|
|
show-sql: false
|
|
resources:
|
|
chain:
|
|
gzipped: true
|
|
profiles:
|
|
active: dev
|
|
|
|
zfile:
|
|
cache:
|
|
auto-refresh:
|
|
enable: true # 是否开启自动刷新缓存.
|
|
delay: 60000 # 启动项目后多久开始自动刷新缓存, 推荐与 interval 一致, 因为项目启动时会缓存所有文件. 单位为秒.
|
|
interval: 60000 # 任务间隔时间, 也就是每多长时间会自动刷新缓存一次. 单位为秒.
|
|
timeout: 1800
|
|
constant:
|
|
readme: readme.md
|
|
password: password.txt
|
|
onedrive:
|
|
clientId: 09939809-c617-43c8-a220-a93c1513c5d4
|
|
clientSecret: _l:zI-_yrW75lV8M61K@z.I2K@B/On6Q
|
|
redirectUri: https://zfile.jun6.net/onedrive/callback
|
|
scope: offline_access User.Read Files.ReadWrite.All
|
|
onedrive-china:
|
|
clientId: 4a72d927-1907-488d-9eb2-1b465c53c1c5
|
|
clientSecret: Y9CEA=82da5n-y_]KAWAgLH3?R9xf7Uw
|
|
redirectUri: https://zfile.jun6.net/onedrive/china-callback
|
|
scope: offline_access User.Read Files.ReadWrite.All |