mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
logging:
|
|
level:
|
|
im:
|
|
zhaojun: info
|
|
path: ${user.home}/.zfile/logs
|
|
|
|
server:
|
|
port: 8080
|
|
servlet:
|
|
context-path: ''
|
|
tomcat:
|
|
max-threads: 20
|
|
compression:
|
|
enabled: true
|
|
|
|
spring:
|
|
datasource:
|
|
# 初始化数据导入
|
|
data: classpath*:db/data.sql
|
|
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: true
|
|
resources:
|
|
chain:
|
|
gzipped: true
|
|
zfile:
|
|
cache:
|
|
timeout: 300
|
|
constant:
|
|
header: header.md
|
|
footer: footer.md
|
|
password: password.txt
|
|
|
|
jetcache:
|
|
statIntervalMinutes: 0
|
|
areaInCacheName: false
|
|
local:
|
|
default:
|
|
type: caffeine
|
|
keyConvertor: fastjson |