mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
77 lines
2.0 KiB
YAML
77 lines
2.0 KiB
YAML
server:
|
|
port: 8080
|
|
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-new/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: prod
|
|
|
|
zfile:
|
|
cache:
|
|
# auto-refresh: # 新版本尚未实现此功能
|
|
# enable: true # 是否开启自动刷新缓存.
|
|
# delay: 1800 # 启动项目后多久开始自动刷新缓存, 推荐与 interval 一致, 因为项目启动时会缓存所有文件.
|
|
# interval: 1800 # 任务间隔时间, 也就是每多长时间会自动刷新缓存一次.
|
|
timeout: 1800
|
|
constant:
|
|
readme: readme.md
|
|
password: password.txt
|
|
preview:
|
|
audio:
|
|
maxFileSizeMb: 5
|
|
text:
|
|
maxFileSizeKb: 512
|
|
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
|